1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 pycryptodomex, 7 pytestCheckHook, 8 requests, 9 setuptools, 10 xmltodict, 11}: 12 13buildPythonPackage rec { 14 pname = "huawei-lte-api"; 15 version = "1.11.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "Salamek"; 22 repo = "huawei-lte-api"; 23 tag = version; 24 hash = "sha256-cSoH3g5olrcv4/IJeRWFR6Yy1ntBuL0zpO1TrnwvIwk="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 pycryptodomex 31 requests 32 xmltodict 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ 38 "huawei_lte_api.AuthorizedConnection" 39 "huawei_lte_api.Client" 40 "huawei_lte_api.Connection" 41 ]; 42 43 meta = with lib; { 44 description = "API For huawei LAN/WAN LTE Modems"; 45 homepage = "https://github.com/Salamek/huawei-lte-api"; 46 changelog = "https://github.com/Salamek/huawei-lte-api/releases/tag/${src.tag}"; 47 license = licenses.lgpl3Only; 48 maintainers = with maintainers; [ dotlambda ]; 49 }; 50}