From eb54158eaaaace75e1ec20e5ea6a9a18226377b6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 Mar 2021 21:24:02 +0100 Subject: [PATCH] python3Packages.openwrt-ubus-rpc: init at 0.0.3 --- .../openwrt-ubus-rpc/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/openwrt-ubus-rpc/default.nix diff --git a/pkgs/development/python-modules/openwrt-ubus-rpc/default.nix b/pkgs/development/python-modules/openwrt-ubus-rpc/default.nix new file mode 100644 index 000000000000..14d0909e658e --- /dev/null +++ b/pkgs/development/python-modules/openwrt-ubus-rpc/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 16c06ad170b9..27a165827949 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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