1{ lib
2, aiohttp
3, buildPythonPackage
4, colour
5, fetchFromGitHub
6, poetry-core
7, pythonOlder
8, setuptools
9}:
10
11buildPythonPackage rec {
12 pname = "ttls";
13 version = "1.4.3";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "jschlyter";
20 repo = pname;
21 rev = "v${version}";
22 hash = "sha256-lBmkfB7HXB+1xLbfOl4wVtsOVfKhztoDBqzV8i6bFAg=";
23 };
24
25 nativeBuildInputs = [
26 poetry-core
27 ];
28
29 propagatedBuildInputs = [
30 aiohttp
31 colour
32 setuptools
33 ];
34
35 # Module has no tests
36 doCheck = false;
37
38 pythonImportsCheck = [
39 "ttls"
40 ];
41
42 meta = with lib; {
43 description = "Module to interact with Twinkly LEDs";
44 homepage = "https://github.com/jschlyter/ttls";
45 license = licenses.mit;
46 maintainers = with maintainers; [ fab ];
47 };
48}