mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-29 05:25:48 +00:00
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
pydantic,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "lifx-emulator-core";
|
|
version = "3.6.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Djelibeybi";
|
|
repo = "lifx-emulator";
|
|
tag = "core-v${finalAttrs.version}";
|
|
hash = "sha256-bZ+u/OKFDYV0kQLeVQPDyLKC9KCTJydbl0xnuOsrh+0=";
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/packages/lifx-emulator-core";
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
pydantic
|
|
pyyaml
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "lifx_emulator" ];
|
|
|
|
meta = {
|
|
description = "Core Python library for emulating LIFX devices using the LAN protocol";
|
|
homepage = "https://github.com/Djelibeybi/lifx-emulator/tree/main/packages/lifx-emulator-core";
|
|
license = lib.licenses.upl;
|
|
maintainers = with lib.maintainers; [ SuperSandro2000 ];
|
|
};
|
|
})
|