Files
nixpkgs/pkgs/development/python-modules/lifx-async/default.nix
2026-05-09 04:07:17 +02:00

52 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
lifx-emulator-core,
pytest-asyncio,
pytest-benchmark,
pytest-cov-stub,
pytest-retry,
pytest-timeout,
pytest-xdist,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "lifx-async";
version = "5.4.8";
pyproject = true;
src = fetchFromGitHub {
owner = "Djelibeybi";
repo = "lifx-async";
tag = "v${finalAttrs.version}";
hash = "sha256-392gHHekZ+rfZzR21ISUqdFiLGFoQSkJeyn3oRSs3+g=";
};
build-system = [ hatchling ];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
lifx-emulator-core
pytest-asyncio
pytest-benchmark
pytest-cov-stub
pytest-retry
pytest-timeout
pytest-xdist
pytestCheckHook
];
pythonImportsCheck = [ "lifx" ];
meta = {
description = "Modern, type-safe, async Python library for controlling LIFX lights";
homepage = "https://github.com/Djelibeybi/lifx-async/";
license = lib.licenses.upl;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
})