python3Packages.pymodbus: init at 2.4.0
This commit is contained in:
parent
877bc4b720
commit
a75ba0dbbe
59
pkgs/development/python-modules/pymodbus/default.nix
Normal file
59
pkgs/development/python-modules/pymodbus/default.nix
Normal file
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -5419,6 +5419,8 @@ in {
|
|||||||
|
|
||||||
pymetno = callPackage ../development/python-modules/pymetno { };
|
pymetno = callPackage ../development/python-modules/pymetno { };
|
||||||
|
|
||||||
|
pymodbus = callPackage ../development/python-modules/pymodbus { };
|
||||||
|
|
||||||
pymongo = callPackage ../development/python-modules/pymongo { };
|
pymongo = callPackage ../development/python-modules/pymongo { };
|
||||||
|
|
||||||
pympler = callPackage ../development/python-modules/pympler { };
|
pympler = callPackage ../development/python-modules/pympler { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user