mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-16 02:04:12 +00:00
52 lines
1.0 KiB
Nix
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 ];
|
|
};
|
|
})
|