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