nixpkgs/pkgs/development/python-modules/pynx584/default.nix
2024-08-09 14:46:58 +02:00

54 lines
925 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
flask,
mock,
prettytable,
pyserial,
pytestCheckHook,
pythonOlder,
requests,
stevedore,
}:
buildPythonPackage {
pname = "pynx584";
version = "0.8.2";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kk7ds";
repo = "pynx584";
rev = "refs/tags/0.8.2";
hash = "sha256-q5ra7tH4kaBrw0VAiyMsmWOkVhA7Y6bRuFP8dlxQjsE=";
};
build-system = [ setuptools ];
dependencies = [
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 ];
};
}