diff --git a/pkgs/development/python-modules/lifx-async/default.nix b/pkgs/development/python-modules/lifx-async/default.nix new file mode 100644 index 000000000000..7a0d8cef2351 --- /dev/null +++ b/pkgs/development/python-modules/lifx-async/default.nix @@ -0,0 +1,51 @@ +{ + 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 ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8292f6470614..1ade3f90f94e 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-async = callPackage ../development/python-modules/lifx-async { }; + lifx-emulator-core = callPackage ../development/python-modules/lifx-emulator-core { }; lightgbm = callPackage ../development/python-modules/lightgbm { };