1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 requests,
7 setuptools,
8 urllib3,
9}:
10
11buildPythonPackage rec {
12 pname = "openwrt-ubus-rpc";
13 version = "0.0.3";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "Noltari";
20 repo = "python-ubus-rpc";
21 tag = version;
22 hash = "sha256-M4hbnGrAjBjohwgMf6qw5NQnpyKCZ0/4HVklHhizTKc=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 requests
29 urllib3
30 ];
31
32 # Project has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [ "openwrt.ubus" ];
36
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 };
44}