Files
nixpkgs/pkgs/development/python-modules/huawei-lte-api/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
pycryptodomex,
pytestCheckHook,
requests,
setuptools,
xmltodict,
}:
buildPythonPackage rec {
pname = "huawei-lte-api";
version = "1.11.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Salamek";
repo = "huawei-lte-api";
tag = version;
hash = "sha256-cSoH3g5olrcv4/IJeRWFR6Yy1ntBuL0zpO1TrnwvIwk=";
};
build-system = [ setuptools ];
dependencies = [
pycryptodomex
requests
xmltodict
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"huawei_lte_api.AuthorizedConnection"
"huawei_lte_api.Client"
"huawei_lte_api.Connection"
];
meta = {
description = "API For huawei LAN/WAN LTE Modems";
homepage = "https://github.com/Salamek/huawei-lte-api";
changelog = "https://github.com/Salamek/huawei-lte-api/releases/tag/${src.tag}";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ dotlambda ];
};
}