diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-06-23 16:53:23 +0200 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-06-23 16:53:23 +0200 |
commit | dfcfc9151532458a14c32245e520e72229a4f635 (patch) | |
tree | 95eff8245d75a682659bf5195a6cb95e4f12e153 /pkgs/development/python-modules/huawei-lte-api | |
parent | 970cb0a6dd23309f81bc2629de62b22f930fb218 (diff) | |
download | nixpkgs-dfcfc9151532458a14c32245e520e72229a4f635.tar nixpkgs-dfcfc9151532458a14c32245e520e72229a4f635.tar.gz nixpkgs-dfcfc9151532458a14c32245e520e72229a4f635.tar.bz2 nixpkgs-dfcfc9151532458a14c32245e520e72229a4f635.tar.lz nixpkgs-dfcfc9151532458a14c32245e520e72229a4f635.tar.xz nixpkgs-dfcfc9151532458a14c32245e520e72229a4f635.tar.zst nixpkgs-dfcfc9151532458a14c32245e520e72229a4f635.zip |
python3Packages.huawei-lte-api: init at 1.4.18
Diffstat (limited to 'pkgs/development/python-modules/huawei-lte-api')
-rw-r--r-- | pkgs/development/python-modules/huawei-lte-api/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/huawei-lte-api/default.nix b/pkgs/development/python-modules/huawei-lte-api/default.nix new file mode 100644 index 00000000000..44cbfd4f0e0 --- /dev/null +++ b/pkgs/development/python-modules/huawei-lte-api/default.nix @@ -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 ]; + }; +} |