python3Packages.openwrt-ubus-rpc: init at 0.0.3

This commit is contained in:
Fabian Affolter 2021-03-04 21:24:02 +01:00
parent 025b801914
commit eb54158eaa
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, urllib3
}:
buildPythonPackage rec {
pname = "openwrt-ubus-rpc";
version = "0.0.3";
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 ];
};
}

View File

@ -4635,6 +4635,8 @@ in {
openwrt-luci-rpc = disabledIf (!isPy3k) (callPackage ../development/python-modules/openwrt-luci-rpc { });
openwrt-ubus-rpc = callPackage ../development/python-modules/openwrt-ubus-rpc { };
opt-einsum = if isPy27 then
callPackage ../development/python-modules/opt-einsum/2.nix { }
else