From b619c9b76c808fbb64ff867b2e10c170f5a9a573 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Mon, 26 Feb 2018 19:37:39 +0800 Subject: [PATCH] pyunifi: init at 2.13 --- .../python-modules/pyunifi/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/python-modules/pyunifi/default.nix diff --git a/pkgs/development/python-modules/pyunifi/default.nix b/pkgs/development/python-modules/pyunifi/default.nix new file mode 100644 index 000000000000..bbf98c32874b --- /dev/null +++ b/pkgs/development/python-modules/pyunifi/default.nix @@ -0,0 +1,22 @@ +{ stdenv, buildPythonPackage, fetchPypi +, requests }: + +buildPythonPackage rec { + pname = "pyunifi"; + version = "2.13"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "1dhbfzv5a29v763m0b9wsc4pvkdr979w7g4rz7ak8hsi4sx6b9dq"; + }; + + propagatedBuildInputs = [ requests ]; + + meta = with stdenv.lib; { + description = "API towards Ubiquity Networks UniFi controller"; + homepage = https://github.com/finish06/unifi-api; + license = licenses.mit; + maintainers = with maintainers; [ peterhoeg ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d05c172ed38c..8a3df659ad48 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2762,6 +2762,8 @@ in { onkyo-eiscp = callPackage ../development/python-modules/onkyo-eiscp { }; + pyunifi = callPackage ../development/python-modules/pyunifi { }; + tablib = buildPythonPackage rec { name = "tablib-${version}"; version = "0.12.1";