mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
python3Packages.openwrt-ubus-rpc: init at 0.0.3
This commit is contained in:
parent
025b801914
commit
eb54158eaa
34
pkgs/development/python-modules/openwrt-ubus-rpc/default.nix
Normal file
34
pkgs/development/python-modules/openwrt-ubus-rpc/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user