2021-04-26 19:14:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flask
|
|
|
|
, mock
|
|
|
|
, prettytable
|
|
|
|
, pyserial
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, stevedore
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynx584";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "0.7";
|
2021-04-26 19:14:03 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kk7ds";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "sha256-44JFq19fpJmpZzLeVcBILs8c9bOfWyMrb2jA4Yx8+Co=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
prettytable
|
|
|
|
pyserial
|
|
|
|
requests
|
|
|
|
stevedore
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|