1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, pycryptodomex
6, pytestCheckHook
7, requests
8, xmltodict
9}:
10
11buildPythonPackage rec {
12 pname = "huawei-lte-api";
13 version = "1.7.3";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "Salamek";
20 repo = "huawei-lte-api";
21 rev = "refs/tags/${version}";
22 hash = "sha256-a01oNfUivbCzTd5auu+EXj+yvcC1vKyktIFK+zPQGy4=";
23 };
24
25 propagatedBuildInputs = [
26 pycryptodomex
27 requests
28 xmltodict
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "huawei_lte_api.AuthorizedConnection"
37 "huawei_lte_api.Client"
38 "huawei_lte_api.Connection"
39 ];
40
41 meta = with lib; {
42 description = "API For huawei LAN/WAN LTE Modems";
43 homepage = "https://github.com/Salamek/huawei-lte-api";
44 changelog = "https://github.com/Salamek/huawei-lte-api/releases/tag/${version}";
45 license = licenses.lgpl3Only;
46 maintainers = with maintainers; [ dotlambda ];
47 };
48}