a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
48 lines
845 B
Nix
48 lines
845 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flask
|
|
, mock
|
|
, prettytable
|
|
, pyserial
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, stevedore
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynx584";
|
|
version = "0.8.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kk7ds";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "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 ];
|
|
};
|
|
}
|