Files
nixpkgs/pkgs/development/python-modules/openwrt-ubus-rpc/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

45 lines
893 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
requests,
setuptools,
urllib3,
}:
buildPythonPackage rec {
pname = "openwrt-ubus-rpc";
version = "0.0.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Noltari";
repo = "python-ubus-rpc";
tag = version;
hash = "sha256-M4hbnGrAjBjohwgMf6qw5NQnpyKCZ0/4HVklHhizTKc=";
};
build-system = [ setuptools ];
dependencies = [
requests
urllib3
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "openwrt.ubus" ];
meta = {
description = "Python API for OpenWrt ubus RPC";
homepage = "https://github.com/Noltari/python-ubus-rpc";
changelog = "https://github.com/Noltari/python-ubus-rpc/releases/tag/${version}";
license = with lib.licenses; [ gpl2Only ];
maintainers = with lib.maintainers; [ fab ];
};
}