depot/third_party/nixpkgs/pkgs/development/python-modules/huawei-lte-api/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

51 lines
975 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pycryptodomex
, pytestCheckHook
, requests
, xmltodict
}:
buildPythonPackage rec {
pname = "huawei-lte-api";
version = "1.5.2";
disabled = pythonOlder "3.4";
src = fetchFromGitHub {
owner = "Salamek";
repo = "huawei-lte-api";
rev = version;
sha256 = "sha256-xG0QTvjYW0/C/7NNhl/d024TSAe0TzgMknOXvNxrPOY=";
};
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 ];
};
}