pythonPackages.nanoleaf: init at 0.4.1

This commit is contained in:
elseym
2018-11-22 21:28:12 +01:00
parent 2fb90e57fd
commit c598aab31f
3 changed files with 32 additions and 0 deletions

View File

@@ -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 ];
};
}