blob: ba718909179bb2ed37fd1ad4552cb5bd09254e53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pyserial,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "umodbus";
version = "1.0.4";
format = "setuptools";
src = fetchFromGitHub {
owner = "AdvancedClimateSystems";
repo = "uModbus";
tag = version;
hash = "sha256-5IXadb5mjrMwr+L9S1iMN5kba5VGrzYt1p8nBvvLCh4=";
};
propagatedBuildInputs = [ pyserial ];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "umodbus" ];
meta = {
description = "Implementation of the Modbus protocol";
homepage = "https://github.com/AdvancedClimateSystems/uModbus/";
license = with lib.licenses; [ mpl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}
|