9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
48 lines
1,012 B
Nix
48 lines
1,012 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pycryptodomex
|
|
, pytestCheckHook
|
|
, requests
|
|
, xmltodict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "huawei-lte-api";
|
|
version = "1.7.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Salamek";
|
|
repo = "huawei-lte-api";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-a01oNfUivbCzTd5auu+EXj+yvcC1vKyktIFK+zPQGy4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|