mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
python3Packages.huawei-lte-api: init at 1.4.18
This commit is contained in:
parent
970cb0a6dd
commit
dfcfc91515
51
pkgs/development/python-modules/huawei-lte-api/default.nix
Normal file
51
pkgs/development/python-modules/huawei-lte-api/default.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, dicttoxml
|
||||
, requests
|
||||
, xmltodict
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "huawei-lte-api";
|
||||
version = "1.4.18";
|
||||
|
||||
disabled = pythonOlder "3.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Salamek";
|
||||
repo = "huawei-lte-api";
|
||||
rev = version;
|
||||
sha256 = "1qaqxmh03j10wa9wqbwgc5r3ays8wfr7bldvsm45fycr3qfyn5fg";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pytest-runner" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dicttoxml
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -3324,6 +3324,8 @@ in {
|
||||
|
||||
httpx = callPackage ../development/python-modules/httpx { };
|
||||
|
||||
huawei-lte-api = callPackage ../development/python-modules/huawei-lte-api { };
|
||||
|
||||
huey = callPackage ../development/python-modules/huey { };
|
||||
|
||||
hug = callPackage ../development/python-modules/hug { };
|
||||
|
Loading…
Reference in New Issue
Block a user