tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.async-modbus: init at 0.2.0
Fabian Affolter
3 years ago
14eadb17
3e93dfa0
+59
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
async-modbus
default.nix
top-level
python-packages.nix
+57
pkgs/development/python-modules/async-modbus/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, connio
4
4
+
, fetchFromGitHub
5
5
+
, pytest-asyncio
6
6
+
, pytestCheckHook
7
7
+
, pythonOlder
8
8
+
, setuptools
9
9
+
, umodbus
10
10
+
}:
11
11
+
12
12
+
buildPythonPackage rec {
13
13
+
pname = "async-modbus";
14
14
+
version = "0.2.0";
15
15
+
format = "pyproject";
16
16
+
17
17
+
disabled = pythonOlder "3.7";
18
18
+
19
19
+
src = fetchFromGitHub {
20
20
+
owner = "tiagocoutinho";
21
21
+
repo = "async_modbus";
22
22
+
rev = "refs/tags/v${version}";
23
23
+
hash = "sha256-TB+ndUvLZ9G3XXEBpLb4ULHlYZC2CoqGnL2BjMQrhRg=";
24
24
+
};
25
25
+
26
26
+
postPatch = ''
27
27
+
substituteInPlace pyproject.toml \
28
28
+
--replace '"--cov=async_modbus",' "" \
29
29
+
--replace '"--cov-report=html", "--cov-report=term",' "" \
30
30
+
--replace '"--durations=2", "--verbose"' ""
31
31
+
'';
32
32
+
33
33
+
nativeBuildInputs = [
34
34
+
setuptools
35
35
+
];
36
36
+
37
37
+
propagatedBuildInputs = [
38
38
+
connio
39
39
+
umodbus
40
40
+
];
41
41
+
42
42
+
checkInputs = [
43
43
+
pytest-asyncio
44
44
+
pytestCheckHook
45
45
+
];
46
46
+
47
47
+
pythonImportsCheck = [
48
48
+
"async_modbus"
49
49
+
];
50
50
+
51
51
+
meta = with lib; {
52
52
+
description = "Library for Modbus communication";
53
53
+
homepage = "https://github.com/tiagocoutinho/async_modbus";
54
54
+
license = with licenses; [ gpl3Plus ];
55
55
+
maintainers = with maintainers; [ fab ];
56
56
+
};
57
57
+
}
+2
pkgs/top-level/python-packages.nix
···
666
666
667
667
async-lru = callPackage ../development/python-modules/async-lru { };
668
668
669
669
+
async-modbus = callPackage ../development/python-modules/async-modbus { };
670
670
+
669
671
asyncclick = callPackage ../development/python-modules/asyncclick { };
670
672
671
673
asynccmd = callPackage ../development/python-modules/asynccmd { };