2025-05-25 03:23:49 +02:00

48 lines
901 B
Nix

{
lib,
bleak,
buildPythonPackage,
click,
fetchFromGitHub,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pykulersky";
version = "0.5.8";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "emlove";
repo = "pykulersky";
rev = version;
hash = "sha256-BaGcsHlQpuEnUn8OgSUsJi2q89vFl7vpkinviKnUZJk=";
};
propagatedBuildInputs = [
bleak
click
];
nativeCheckInputs = [
pytest-asyncio
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "pykulersky" ];
meta = with lib; {
description = "Python module to control Brightech Kuler Sky Bluetooth LED devices";
mainProgram = "pykulersky";
homepage = "https://github.com/emlove/pykulersky";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}