1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "aionanoleaf";
10 version = "0.0.4";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.8";
14
15 src = fetchFromGitHub {
16 owner = "milanmeu";
17 repo = pname;
18 rev = "v${version}";
19 sha256 = "sha256-Ys6zFfS0R3L504fkMVZvt1IjCzLoT1OEW/OOCaXp7dw=";
20 };
21
22 propagatedBuildInputs = [
23 aiohttp
24 ];
25
26 # Project has no tests
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "aionanoleaf"
31 ];
32
33 meta = with lib; {
34 description = "Python wrapper for the Nanoleaf API";
35 homepage = "https://github.com/milanmeu/aionanoleaf";
36 license = licenses.lgpl3Plus;
37 maintainers = with maintainers; [ fab ];
38 };
39}