1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 poetry-core,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "ttls";
12 version = "1.9.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "jschlyter";
19 repo = "ttls";
20 tag = "v${version}";
21 hash = "sha256-itGXZbQZ+HYpiwySLeGN3mPy3fgsxx0A9byOxIVpRBc=";
22 };
23
24 build-system = [ poetry-core ];
25
26 dependencies = [
27 aiohttp
28 ];
29
30 # Module has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [ "ttls" ];
34
35 meta = with lib; {
36 description = "Module to interact with Twinkly LEDs";
37 mainProgram = "ttls";
38 homepage = "https://github.com/jschlyter/ttls";
39 changelog = "https://github.com/jschlyter/ttls/blob/v${version}/CHANGES.md";
40 license = licenses.mit;
41 maintainers = with maintainers; [ fab ];
42 };
43}