diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-06 22:43:04 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-06 22:43:04 +0100 |
commit | a75ba0dbbe9455043418e59dffed20551118f722 (patch) | |
tree | 096628ba308acc8b232d9713463bc5788b2b8740 /pkgs/development/python-modules/pymodbus/default.nix | |
parent | 877bc4b72019d46941c6c8b801ad95c83152c4c3 (diff) | |
download | nixpkgs-a75ba0dbbe9455043418e59dffed20551118f722.tar nixpkgs-a75ba0dbbe9455043418e59dffed20551118f722.tar.gz nixpkgs-a75ba0dbbe9455043418e59dffed20551118f722.tar.bz2 nixpkgs-a75ba0dbbe9455043418e59dffed20551118f722.tar.lz nixpkgs-a75ba0dbbe9455043418e59dffed20551118f722.tar.xz nixpkgs-a75ba0dbbe9455043418e59dffed20551118f722.tar.zst nixpkgs-a75ba0dbbe9455043418e59dffed20551118f722.zip |
python3Packages.pymodbus: init at 2.4.0
Diffstat (limited to 'pkgs/development/python-modules/pymodbus/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pymodbus/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pymodbus/default.nix b/pkgs/development/python-modules/pymodbus/default.nix new file mode 100644 index 00000000000..76f2e9a9338 --- /dev/null +++ b/pkgs/development/python-modules/pymodbus/default.nix @@ -0,0 +1,59 @@ +{ lib +, asynctest +, buildPythonPackage +, fetchFromGitHub +, mock +, pyserial +, pyserial-asyncio +, pytestCheckHook +, pythonOlder +, redis +, sqlalchemy +, tornado +, twisted +}: + +buildPythonPackage rec { + pname = "pymodbus"; + version = "2.4.0"; + + src = fetchFromGitHub { + owner = "riptideio"; + repo = pname; + rev = "v${version}"; + sha256 = "0x0dv02shcc2yxxm9kvcbhip111sna74dvcfssxdzzy967vnq76v"; + }; + + # Twisted asynchronous version is not supported due to a missing dependency + propagatedBuildInputs = [ + pyserial + pyserial-asyncio + tornado + ]; + + checkInputs = [ + asynctest + mock + pyserial-asyncio + pytestCheckHook + redis + sqlalchemy + tornado + twisted + ]; + + pythonImportsCheck = [ "pymodbus" ]; + + meta = with lib; { + description = "Python implementation of the Modbus protocol"; + longDescription = '' + Pymodbus is a full Modbus protocol implementation using twisted, + torndo or asyncio for its asynchronous communications core. It can + also be used without any third party dependencies if a more + lightweight project is needed. + ''; + homepage = "https://github.com/riptideio/pymodbus"; + license = with licenses; [ bsd3 ]; + maintainers = with maintainers; [ fab ]; + }; +} |