nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pycryptodomex,
6 pytestCheckHook,
7 requests,
8 setuptools,
9 xmltodict,
10}:
11
12buildPythonPackage rec {
13 pname = "huawei-lte-api";
14 version = "1.11.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "Salamek";
19 repo = "huawei-lte-api";
20 tag = version;
21 hash = "sha256-cSoH3g5olrcv4/IJeRWFR6Yy1ntBuL0zpO1TrnwvIwk=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 pycryptodomex
28 requests
29 xmltodict
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [
35 "huawei_lte_api.AuthorizedConnection"
36 "huawei_lte_api.Client"
37 "huawei_lte_api.Connection"
38 ];
39
40 meta = {
41 description = "API For huawei LAN/WAN LTE Modems";
42 homepage = "https://github.com/Salamek/huawei-lte-api";
43 changelog = "https://github.com/Salamek/huawei-lte-api/releases/tag/${src.tag}";
44 license = lib.licenses.lgpl3Only;
45 maintainers = with lib.maintainers; [ dotlambda ];
46 };
47}