depot/third_party/nixpkgs/pkgs/development/python-modules/umodbus/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

38 lines
823 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyserial,
pytestCheckHook,
pythonOlder,
}:
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 ];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ 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 ];
};
}