1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "aionanoleaf";
10 version = "0.2.1";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.8";
14
15 src = fetchFromGitHub {
16 owner = "milanmeu";
17 repo = pname;
18 rev = "refs/tags/v${version}";
19 hash = "sha256-f0TyXhuAzI0s0n6sXH9mKWA4nad2YchZkQ0+jw/Bmv0=";
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 changelog = "https://github.com/milanmeu/aionanoleaf/releases/tag/v${version}";
37 license = licenses.lgpl3Plus;
38 maintainers = with maintainers; [ fab ];
39 };
40}