git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.pymodbus: init at 2.4.0
commita75ba0dbbe9455043418e59dffed20551118f722 authorFabian Affolter <mail@fabian-affolter.ch> dateWed 6 Jan 2021, 22:43 (6 years ago) parent877bc4b
2 files changed+61
pkgs/development/python-modules/pymodbus/default.nix+59 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/pymodbus/default.nixnew file+59
@@ -0,0 +1,59 @@
1+{ lib
2+, asynctest
3+, buildPythonPackage
4+, fetchFromGitHub
5+, mock
6+, pyserial
7+, pyserial-asyncio
8+, pytestCheckHook
9+, pythonOlder
10+, redis
11+, sqlalchemy
12+, tornado
13+, twisted
14+}:
15+
16+buildPythonPackage rec {
17+ pname = "pymodbus";
18+ version = "2.4.0";
19+
20+ src = fetchFromGitHub {
21+ owner = "riptideio";
22+ repo = pname;
23+ rev = "v${version}";
24+ sha256 = "0x0dv02shcc2yxxm9kvcbhip111sna74dvcfssxdzzy967vnq76v";
25+ };
26+
27+ # Twisted asynchronous version is not supported due to a missing dependency
28+ propagatedBuildInputs = [
29+ pyserial
30+ pyserial-asyncio
31+ tornado
32+ ];
33+
34+ checkInputs = [
35+ asynctest
36+ mock
37+ pyserial-asyncio
38+ pytestCheckHook
39+ redis
40+ sqlalchemy
41+ tornado
42+ twisted
43+ ];
44+
45+ pythonImportsCheck = [ "pymodbus" ];
46+
47+ meta = with lib; {
48+ description = "Python implementation of the Modbus protocol";
49+ longDescription = ''
50+ Pymodbus is a full Modbus protocol implementation using twisted,
51+ torndo or asyncio for its asynchronous communications core. It can
52+ also be used without any third party dependencies if a more
53+ lightweight project is needed.
54+ '';
55+ homepage = "https://github.com/riptideio/pymodbus";
56+ license = with licenses; [ bsd3 ];
57+ maintainers = with maintainers; [ fab ];
58+ };
59+}
pkgs/top-level/python-packages.nix+2
@@ -5419,6 +5419,8 @@ in {
54195419
54205420 pymetno = callPackage ../development/python-modules/pymetno { };
54215421
5422+ pymodbus = callPackage ../development/python-modules/pymodbus { };
5423+
54225424 pymongo = callPackage ../development/python-modules/pymongo { };
54235425
54245426 pympler = callPackage ../development/python-modules/pympler { };