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