about summary refs log tree commit diff
path: root/pkgs/development/python-modules/nanoleaf
diff options
context:
space:
mode:
authorelseym <elseym@me.com>2018-11-22 21:28:12 +0100
committerelseym <elseym@me.com>2018-11-23 15:16:55 +0100
commitc598aab31fc9fdbebf159991cea6041c3da75a73 (patch)
treebd11882a127876639b596a5029424569c03a92b2 /pkgs/development/python-modules/nanoleaf
parent2fb90e57fd8f3342d72d4176df24d9981da1bacd (diff)
pythonPackages.nanoleaf: init at 0.4.1
Diffstat (limited to 'pkgs/development/python-modules/nanoleaf')
-rw-r--r--pkgs/development/python-modules/nanoleaf/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nanoleaf/default.nix b/pkgs/development/python-modules/nanoleaf/default.nix
new file mode 100644
index 0000000000000..ccf0be4ae6d22
--- /dev/null
+++ b/pkgs/development/python-modules/nanoleaf/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, buildPythonPackage, fetchPypi, requests }:
+
+buildPythonPackage rec {
+  pname = "nanoleaf";
+  version = "0.4.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "17dmxibfjmwnrs6ng5cmvfis3cv6iw267xb8n1pijy15y9dz0s8s";
+  };
+
+  prePatch = ''
+    sed -i '/^gitVersion =/d' setup.py
+    substituteInPlace setup.py --replace 'gitVersion' '"${version}"'
+  '';
+
+  propagatedBuildInputs = [ requests ];
+
+  meta = with stdenv.lib; {
+    description = "A python interface for Nanoleaf Aurora lighting";
+    homepage = https://github.com/software-2/nanoleaf;
+    license = licenses.mit;
+    maintainers = with maintainers; [ elseym ];
+  };
+}