2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pycryptodomex,
|
|
|
|
pytestCheckHook,
|
|
|
|
requests,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
xmltodict,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "huawei-lte-api";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.9.3";
|
|
|
|
pyproject = true;
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
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-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-D3PABCFjy7ZhP4L02rUvmKttejDPUE5whxqQih0MvpU=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-12-06 16:07:01 +00:00
|
|
|
pycryptodomex
|
2021-06-28 23:13:55 +00:00
|
|
|
requests
|
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|