diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/ttls/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/ttls/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/ttls/default.nix b/nixpkgs/pkgs/development/python-modules/ttls/default.nix new file mode 100644 index 000000000000..e2bfe61504af --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/ttls/default.nix @@ -0,0 +1,49 @@ +{ lib +, aiohttp +, buildPythonPackage +, colour +, fetchFromGitHub +, poetry-core +, pythonOlder +, setuptools +}: + +buildPythonPackage rec { + pname = "ttls"; + version = "1.8.2"; + format = "pyproject"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "jschlyter"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-i9vJr7uTpkUZ9WiL0BGidIgCdG87k8JnmZuPqt6qLQE="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + colour + setuptools + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "ttls" + ]; + + meta = with lib; { + description = "Module to interact with Twinkly LEDs"; + homepage = "https://github.com/jschlyter/ttls"; + changelog = "https://github.com/jschlyter/ttls/blob/v${version}/CHANGES.md"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} |