depot/third_party/nixpkgs/pkgs/development/python-modules/modbus-tk/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

38 lines
755 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pythonOlder,
pyserial,
}:
buildPythonPackage rec {
pname = "modbus-tk";
version = "1.1.3";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchPypi {
pname = "modbus_tk";
inherit version;
hash = "sha256-aQ+nu4bql4mSRl0tYci1rMY5zg6LgzoKqW1N0XLFZEo=";
};
build-system = [ setuptools ];
dependencies = [ pyserial ];
# Source no tagged anymore and PyPI doesn't ship tests
doCheck = false;
pythonImportsCheck = [ "modbus_tk" ];
meta = with lib; {
description = "Module for simple Modbus interactions";
homepage = "https://github.com/ljean/modbus-tk";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ fab ];
};
}