blob: 2d3a75a875f847da3cc3d6b4386f02c08adda858 (
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
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pycryptodomex
, pytestCheckHook
, requests
, xmltodict
}:
buildPythonPackage rec {
pname = "huawei-lte-api";
version = "1.6.6";
format = "setuptools";
disabled = pythonOlder "3.4";
src = fetchFromGitHub {
owner = "Salamek";
repo = "huawei-lte-api";
rev = "refs/tags/${version}";
hash = "sha256-LVWhHSHiixjZjakXgGnEIcJkQ0+VU3Xhlh8uY76Prxg=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
propagatedBuildInputs = [
pycryptodomex
requests
xmltodict
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"huawei_lte_api.AuthorizedConnection"
"huawei_lte_api.Client"
"huawei_lte_api.Connection"
];
meta = with lib; {
description = "API For huawei LAN/WAN LTE Modems";
homepage = "https://github.com/Salamek/huawei-lte-api";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ dotlambda ];
};
}
|