depot/third_party/nixpkgs/pkgs/development/python-modules/huawei-lte-api/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

50 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
pycryptodomex,
pytestCheckHook,
requests,
setuptools,
xmltodict,
}:
buildPythonPackage rec {
pname = "huawei-lte-api";
version = "1.9.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Salamek";
repo = "huawei-lte-api";
rev = "refs/tags/${version}";
hash = "sha256-D3PABCFjy7ZhP4L02rUvmKttejDPUE5whxqQih0MvpU=";
};
build-system = [ setuptools ];
dependencies = [
pycryptodomex
requests
xmltodict
];
nativeCheckInputs = [ 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";
changelog = "https://github.com/Salamek/huawei-lte-api/releases/tag/${version}";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ dotlambda ];
};
}