1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5, urllib3
6}:
7
8buildPythonPackage rec {
9 pname = "openwrt-ubus-rpc";
10 version = "0.0.3";
11
12 src = fetchFromGitHub {
13 owner = "Noltari";
14 repo = "python-ubus-rpc";
15 rev = version;
16 sha256 = "19scncc1w9ar3pw4yrw24akjgm74n2m7y308hzl1i360daf5p21k";
17 };
18
19 propagatedBuildInputs = [
20 requests
21 urllib3
22 ];
23
24 # Project has no tests
25 doCheck = false;
26 pythonImportsCheck = [ "openwrt.ubus" ];
27
28 meta = with lib; {
29 description = "Python API for OpenWrt ubus RPC";
30 homepage = "https://github.com/Noltari/python-ubus-rpc";
31 license = with licenses; [ gpl2Only ];
32 maintainers = with maintainers; [ fab ];
33 };
34}