mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
Merge pull request #115140 from fabaff/openwrt-ubus-rpc
python3Packages.openwrt-ubus-rpc: init at 0.0.3
This commit is contained in:
commit
3bfe7f78ae
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 ];
|
||||
};
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user