Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / huawei-lte-api / default.nix
blob3bde42f186d153e0e9e2edaa318e0042cf686509
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , pycryptodomex
6 , pytestCheckHook
7 , requests
8 , xmltodict
9 }:
11 buildPythonPackage rec {
12   pname = "huawei-lte-api";
13   version = "1.7.3";
14   format = "setuptools";
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "Salamek";
20     repo = "huawei-lte-api";
21     rev = "refs/tags/${version}";
22     hash = "sha256-a01oNfUivbCzTd5auu+EXj+yvcC1vKyktIFK+zPQGy4=";
23   };
25   propagatedBuildInputs = [
26     pycryptodomex
27     requests
28     xmltodict
29   ];
31   nativeCheckInputs = [
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [
36     "huawei_lte_api.AuthorizedConnection"
37     "huawei_lte_api.Client"
38     "huawei_lte_api.Connection"
39   ];
41   meta = with lib; {
42     description = "API For huawei LAN/WAN LTE Modems";
43     homepage = "https://github.com/Salamek/huawei-lte-api";
44     changelog = "https://github.com/Salamek/huawei-lte-api/releases/tag/${version}";
45     license = licenses.lgpl3Only;
46     maintainers = with maintainers; [ dotlambda ];
47   };