2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
2021-12-06 16:07:01 +00:00
|
|
|
, pycryptodomex
|
|
|
|
, pytestCheckHook
|
2021-06-28 23:13:55 +00:00
|
|
|
, requests
|
|
|
|
, xmltodict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "huawei-lte-api";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.8.1";
|
2022-10-21 18:38:19 +00:00
|
|
|
format = "setuptools";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Salamek";
|
|
|
|
repo = "huawei-lte-api";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-KmkoCQDZ1NC3CKfV5DZBukExF9fUTojvWv2ZLTCzRZU=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
pycryptodomex
|
2021-06-28 23:13:55 +00:00
|
|
|
requests
|
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
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";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/Salamek/huawei-lte-api/releases/tag/${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|