2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, requests }:
|
2018-11-22 20:28:12 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-22 20:28:12 +00:00
|
|
|
description = "A python interface for Nanoleaf Aurora lighting";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/software-2/nanoleaf";
|
2018-11-22 20:28:12 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ elseym ];
|
|
|
|
};
|
|
|
|
}
|