01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
52 lines
1,013 B
Nix
52 lines
1,013 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pycryptodomex
|
|
, pytestCheckHook
|
|
, requests
|
|
, xmltodict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "huawei-lte-api";
|
|
version = "1.6.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Salamek";
|
|
repo = "huawei-lte-api";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-CMGOR5b8Uc8ZIuMlkCkxZqTqUA/Im2RgXK4uFZdoHeU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "pytest-runner" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
pycryptodomex
|
|
requests
|
|
xmltodict
|
|
];
|
|
|
|
checkInputs = [
|
|
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";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|