Merge pull request #115140 from fabaff/openwrt-ubus-rpc

python3Packages.openwrt-ubus-rpc: init at 0.0.3
This commit is contained in:
Sandro 2021-03-05 01:41:36 +01:00 committed by GitHub
commit 3bfe7f78ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -4637,6 +4637,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