1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 requests,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "pynanoleaf";
11 version = "0.1.1";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-MqCDdZxPmeAZ4AE2cEh4Qfjt+AfHoHdCqXH6GHBwcqc=";
17 };
18
19 build-system = [ setuptools ];
20
21 dependencies = [ requests ];
22
23 # pynanoleaf does not contain tests
24 doCheck = false;
25
26 pythonImportsCheck = [ "pynanoleaf" ];
27
28 meta = with lib; {
29 description = "Python3 wrapper for the Nanoleaf API, capable of controlling both Nanoleaf Aurora and Nanoleaf Canvas";
30 homepage = "https://github.com/Oro/pynanoleaf";
31 changelog = "https://github.com/Oro/pynanoleaf/releases/tag/${version}";
32 license = licenses.mit;
33 maintainers = with maintainers; [ oro ];
34 };
35}