about summary refs log tree commit diff
path: root/pkgs/development/python-modules/quantum-gateway/default.nix
blob: 272899a6bbbdea3c5b6d390ec0df1a7a6c01cd09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ lib
, buildPythonPackage
, esprima
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
, setuptools-scm
, urllib3
}:

buildPythonPackage rec {
  pname = "quantum-gateway";
  version = "0.0.8";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "cisasteelersfan";
    repo = "quantum_gateway";
    rev = version;
    hash = "sha256-jwLfth+UaisPR0p+UHfm6qMXT2eSYWnsYEp0BqyeI9U=";
  };

  propagatedBuildInputs = [
    urllib3
    esprima
    requests
  ];

  checkInputs = [
    requests-mock
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "quantum_gateway"
  ];

  disabledTests = [
    # Tests require network features
    "TestGateway3100"
  ];

  meta = with lib; {
    description = "Python library for interacting with Verizon Fios Quantum gateway devices";
    homepage = "https://github.com/cisasteelersfan/quantum_gateway";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}