Merge pull request #50931 from elseym/python-nanoleaf
pythonPackages.nanoleaf: init at 0.4.1
This commit is contained in:
commit
7ce5ab6e21
@ -1319,6 +1319,11 @@
|
||||
github = "ellis";
|
||||
name = "Ellis Whitehead";
|
||||
};
|
||||
elseym = {
|
||||
email = "elseym@me.com";
|
||||
github = "elseym";
|
||||
name = "Simon Waibl";
|
||||
};
|
||||
elvishjerricco = {
|
||||
email = "elvishjerricco@gmail.com";
|
||||
github = "ElvishJerricco";
|
||||
|
25
pkgs/development/python-modules/nanoleaf/default.nix
Normal file
25
pkgs/development/python-modules/nanoleaf/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -562,7 +562,7 @@
|
||||
"light.mqtt_template" = ps: with ps; [ paho-mqtt ];
|
||||
"light.mysensors" = ps: with ps; [ ];
|
||||
"light.mystrom" = ps: with ps; [ ];
|
||||
"light.nanoleaf_aurora" = ps: with ps; [ ];
|
||||
"light.nanoleaf_aurora" = ps: with ps; [ nanoleaf ];
|
||||
"light.opple" = ps: with ps; [ ];
|
||||
"light.osramlightify" = ps: with ps; [ ];
|
||||
"light.piglow" = ps: with ps; [ ];
|
||||
|
@ -4996,6 +4996,8 @@ in {
|
||||
|
||||
pymssql = callPackage ../development/python-modules/pymssql { };
|
||||
|
||||
nanoleaf = callPackage ../development/python-modules/nanoleaf { };
|
||||
|
||||
});
|
||||
|
||||
in fix' (extends overrides packages)
|
||||
|
Loading…
Reference in New Issue
Block a user