depot/third_party/nixpkgs/pkgs/development/python-modules/pynx584/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

49 lines
880 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flask,
mock,
prettytable,
pyserial,
pytestCheckHook,
pythonOlder,
requests,
stevedore,
}:
buildPythonPackage rec {
pname = "pynx584";
version = "0.8.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kk7ds";
repo = pname;
rev = version;
hash = "sha256-nF8+LbKqy/GrnPpykS5wEQMPoFYxi40pfM3Ys/UXCeo=";
};
propagatedBuildInputs = [
flask
prettytable
pyserial
requests
stevedore
];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "nx584" ];
meta = with lib; {
description = "Python package for communicating to NX584/NX8E interfaces";
homepage = "https://github.com/kk7ds/pynx584";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
};
}