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