1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, flask
5, mock
6, prettytable
7, pyserial
8, pytestCheckHook
9, pythonOlder
10, requests
11, stevedore
12}:
13
14buildPythonPackage rec {
15 pname = "pynx584";
16 version = "0.6";
17 disabled = pythonOlder "3.6";
18
19
20 src = fetchFromGitHub {
21 owner = "kk7ds";
22 repo = pname;
23 rev = version;
24 sha256 = "0if1jq8qiqp4w4zhf2xzzcb8y70hr5pxqzh96i008p6izjha89y6";
25 };
26
27 propagatedBuildInputs = [
28 flask
29 prettytable
30 pyserial
31 requests
32 stevedore
33 ];
34
35 checkInputs = [
36 mock
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [ "nx584" ];
41
42 meta = with lib; {
43 description = "Python package for communicating to NX584/NX8E interfaces";
44 homepage = "https://github.com/kk7ds/pynx584";
45 license = with licenses; [ gpl3Only ];
46 maintainers = with maintainers; [ fab ];
47 };
48}