diff options
author | makefu <github@syntax-fehler.de> | 2019-10-30 08:01:44 +0100 |
---|---|---|
committer | Jeschli <jeschli@gmail.com> | 2019-11-14 15:36:11 +0100 |
commit | cc8d599e1ca3b1b2d50ff52147893f5dd783f87c (patch) | |
tree | faf1ce068c6431185101225af07974c1483f2efc /2configs/bureautomation/deps/openwrt-luci-rpc.nix | |
parent | 5ad2e261d3def7e949d585ce36b4ece850dbba27 (diff) |
ma bureautomation: fix all the regression, add openwrt-luci-rpc as dependency
Diffstat (limited to '2configs/bureautomation/deps/openwrt-luci-rpc.nix')
-rw-r--r-- | 2configs/bureautomation/deps/openwrt-luci-rpc.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/2configs/bureautomation/deps/openwrt-luci-rpc.nix b/2configs/bureautomation/deps/openwrt-luci-rpc.nix new file mode 100644 index 000000000..4eceeb146 --- /dev/null +++ b/2configs/bureautomation/deps/openwrt-luci-rpc.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchPypi +, click +, requests +, packaging +}: + +buildPythonPackage rec { + pname = "openwrt-luci-rpc"; + version = "1.1.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "174a1f6c0bb2a2ed76e5299d14e2be05c612e8bcd4c15b9a9aedee1ef8e18b90"; + }; + + patchPhase = '' + sed -i -e "s/requests==2.21.0/requests/" -e "s/packaging==19.1/packaging/" setup.py + ''; + + propagatedBuildInputs = [ + click + requests + packaging + ]; + + meta = with lib; { + description = "Module for interacting with OpenWrt Luci RPC interface"; + homepage = https://github.com/fbradyirl/openwrt-luci-rpc; + license = licenses.asl20; + maintainers = [ maintainers.makefu ]; + }; +} |