git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pynanoleaf: init at 0.0.5
commit6fcf77e87a71bfdf70c158ac9b820deda23701e9 authorMarco Orovecchia <marco@orovecchia.at> dateThu 19 Mar 2020, 21:00 (7 years ago) parent376c25a
3 files changed+32−1
pkgs/development/python-modules/pynanoleaf/default.nix+29 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/pynanoleaf/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ lib, buildPythonPackage, fetchPypi, isPy3k, requests }:
2+
3+buildPythonPackage rec {
4+ pname = "pynanoleaf";
5+ version = "0.0.5";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "2ced000e3c37f4e2ce0ea177d924af71c97007de9e4fd0ef37dcd7b4a6d1b622";
10+ };
11+
12+ disabled = !isPy3k;
13+
14+ propagatedBuildInputs = [ requests ];
15+
16+ # pynanoleaf does not contain tests
17+ doCheck = false;
18+
19+ pythonImportsCheck = [
20+ "pynanoleaf"
21+ ];
22+
23+ meta = with lib; {
24+ homepage = "https://github.com/Oro/pynanoleaf";
25+ description = "A Python3 wrapper for the Nanoleaf API, capable of controlling both Nanoleaf Aurora and Nanoleaf Canvas";
26+ license = licenses.mit;
27+ maintainers = with maintainers; [ oro ];
28+ };
29+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -500,7 +500,7 @@
500500 "n26" = ps: with ps; [ ]; # missing inputs: n26
501501 "nad" = ps: with ps; [ ]; # missing inputs: nad_receiver
502502 "namecheapdns" = ps: with ps; [ defusedxml];
503− "nanoleaf" = ps: with ps; [ ]; # missing inputs: pynanoleaf
503+ "nanoleaf" = ps: with ps; [ pynanoleaf];
504504 "neato" = ps: with ps; [ pybotvac];
505505 "nederlandse_spoorwegen" = ps: with ps; [ ]; # missing inputs: nsapi
506506 "nello" = ps: with ps; [ ]; # missing inputs: pynello
pkgs/top-level/python-packages.nix+2
@@ -1214,6 +1214,8 @@ in {
12141214
12151215 pymsgbox = callPackage ../development/python-modules/pymsgbox { };
12161216
1217+ pynanoleaf = callPackage ../development/python-modules/pynanoleaf { };
1218+
12171219 pynisher = callPackage ../development/python-modules/pynisher { };
12181220
12191221 pyparser = callPackage ../development/python-modules/pyparser { };