biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / openwrt-ubus-rpc / default.nix
blobefafabe29d61ec12691b026ffa15cd961119de40
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   requests,
7   setuptools,
8   urllib3,
9 }:
11 buildPythonPackage rec {
12   pname = "openwrt-ubus-rpc";
13   version = "0.0.3";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "Noltari";
20     repo = "python-ubus-rpc";
21     rev = "refs/tags/${version}";
22     hash = "sha256-M4hbnGrAjBjohwgMf6qw5NQnpyKCZ0/4HVklHhizTKc=";
23   };
25   build-system = [ setuptools ];
27   dependencies = [
28     requests
29     urllib3
30   ];
32   # Project has no tests
33   doCheck = false;
35   pythonImportsCheck = [ "openwrt.ubus" ];
37   meta = with lib; {
38     description = "Python API for OpenWrt ubus RPC";
39     homepage = "https://github.com/Noltari/python-ubus-rpc";
40     changelog = "https://github.com/Noltari/python-ubus-rpc/releases/tag/${version}";
41     license = with licenses; [ gpl2Only ];
42     maintainers = with maintainers; [ fab ];
43   };