diff --git a/pkgs/development/python-modules/lifx-emulator-core/default.nix b/pkgs/development/python-modules/lifx-emulator-core/default.nix new file mode 100644 index 000000000000..7079f9770ca1 --- /dev/null +++ b/pkgs/development/python-modules/lifx-emulator-core/default.nix @@ -0,0 +1,50 @@ +{ + 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 ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 215bfb2f5329..8292f6470614 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8985,6 +8985,8 @@ self: super: with self; { lifelines = callPackage ../development/python-modules/lifelines { }; + lifx-emulator-core = callPackage ../development/python-modules/lifx-emulator-core { }; + lightgbm = callPackage ../development/python-modules/lightgbm { }; lightify = callPackage ../development/python-modules/lightify { };