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
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ lib
2
+
, buildPythonPackage
3
+
, connio
4
+
, fetchFromGitHub
5
+
, pytest-asyncio
6
+
, pytestCheckHook
7
+
, pythonOlder
8
+
, setuptools
9
+
, umodbus
10
+
}:
11
+
12
+
buildPythonPackage rec {
13
+
pname = "async-modbus";
14
+
version = "0.2.0";
15
+
format = "pyproject";
16
+
17
+
disabled = pythonOlder "3.7";
18
+
19
+
src = fetchFromGitHub {
20
+
owner = "tiagocoutinho";
21
+
repo = "async_modbus";
22
+
rev = "refs/tags/v${version}";
23
+
hash = "sha256-TB+ndUvLZ9G3XXEBpLb4ULHlYZC2CoqGnL2BjMQrhRg=";
24
+
};
25
+
26
+
postPatch = ''
27
+
substituteInPlace pyproject.toml \
28
+
--replace '"--cov=async_modbus",' "" \
29
+
--replace '"--cov-report=html", "--cov-report=term",' "" \
30
+
--replace '"--durations=2", "--verbose"' ""
31
+
'';
32
+
33
+
nativeBuildInputs = [
34
+
setuptools
35
+
];
36
+
37
+
propagatedBuildInputs = [
38
+
connio
39
+
umodbus
40
+
];
41
+
42
+
checkInputs = [
43
+
pytest-asyncio
44
+
pytestCheckHook
45
+
];
46
+
47
+
pythonImportsCheck = [
48
+
"async_modbus"
49
+
];
50
+
51
+
meta = with lib; {
52
+
description = "Library for Modbus communication";
53
+
homepage = "https://github.com/tiagocoutinho/async_modbus";
54
+
license = with licenses; [ gpl3Plus ];
55
+
maintainers = with maintainers; [ fab ];
56
+
};
57
+
}
+2
pkgs/top-level/python-packages.nix
···
666
667
async-lru = callPackage ../development/python-modules/async-lru { };
668
0
0
669
asyncclick = callPackage ../development/python-modules/asyncclick { };
670
671
asynccmd = callPackage ../development/python-modules/asynccmd { };
···
666
667
async-lru = callPackage ../development/python-modules/async-lru { };
668
669
+
async-modbus = callPackage ../development/python-modules/async-modbus { };
670
+
671
asyncclick = callPackage ../development/python-modules/asyncclick { };
672
673
asynccmd = callPackage ../development/python-modules/asynccmd { };