5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
48 lines
812 B
Nix
48 lines
812 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, colour
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ttls";
|
|
version = "1.4.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jschlyter";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-lBmkfB7HXB+1xLbfOl4wVtsOVfKhztoDBqzV8i6bFAg=";
|
|
};
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|