about summary refs log tree commit diff
path: root/pkgs/development/python-modules/openwrt-ubus-rpc/default.nix
blob: c5a5ac35b3cd66e0ac13adf6416c0308a328ec3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, urllib3
}:

buildPythonPackage rec {
  pname = "openwrt-ubus-rpc";
  version = "0.0.3";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "Noltari";
    repo = "python-ubus-rpc";
    rev = version;
    sha256 = "19scncc1w9ar3pw4yrw24akjgm74n2m7y308hzl1i360daf5p21k";
  };

  propagatedBuildInputs = [
    requests
    urllib3
  ];

  # Project has no tests
  doCheck = false;
  pythonImportsCheck = [ "openwrt.ubus" ];

  meta = with lib; {
    description = "Python API for OpenWrt ubus RPC";
    homepage = "https://github.com/Noltari/python-ubus-rpc";
    license = with licenses; [ gpl2Only ];
    maintainers = with maintainers; [ fab ];
  };
}