depot/third_party/nixpkgs/pkgs/development/python-modules/ttls/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

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 ];
};
}