python310Packages.umodbus: init at 1.0.4

This commit is contained in:
Fabian Affolter 2022-11-12 12:49:15 +01:00
parent f103fde3a5
commit 25ede38d35
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyserial
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "umodbus";
version = "1.0.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "AdvancedClimateSystems";
repo = "uModbus";
rev = "refs/tags/${version}";
hash = "sha256-5IXadb5mjrMwr+L9S1iMN5kba5VGrzYt1p8nBvvLCh4=";
};
propagatedBuildInputs = [
pyserial
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"umodbus"
];
meta = with lib; {
description = "Implementation of the Modbus protocol";
homepage = "https://github.com/AdvancedClimateSystems/uModbus/";
license = with licenses; [ mpl20 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -11470,6 +11470,8 @@ self: super: with self; {
umap-learn = callPackage ../development/python-modules/umap-learn { };
umodbus = callPackage ../development/python-modules/umodbus { };
u-msgpack-python = callPackage ../development/python-modules/u-msgpack-python { };
unasync = callPackage ../development/python-modules/unasync { };