at 23.11-beta 903 B view raw
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.8.1"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "jschlyter"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-7w+VFxqv1htN5rKvMbcBV6uYqT3PT0ocv3S9Om2Ol3k="; 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 changelog = "https://github.com/jschlyter/ttls/blob/v${version}/CHANGES.md"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}