From b4ebb630d4288c5d5df281697bc6bada5ff5844c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 4 Jun 2025 18:02:59 -0700 Subject: [PATCH] python3Packages.aioimmich: init at 0.9.0 --- .../python-modules/aioimmich/default.nix | 54 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/development/python-modules/aioimmich/default.nix diff --git a/pkgs/development/python-modules/aioimmich/default.nix b/pkgs/development/python-modules/aioimmich/default.nix new file mode 100644 index 000000000000..fcb666d1357c --- /dev/null +++ b/pkgs/development/python-modules/aioimmich/default.nix @@ -0,0 +1,54 @@ +{ + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + lib, + mashumaro, + pytest-asyncio, + pytestCheckHook, + setuptools, + syrupy, +}: + +buildPythonPackage rec { + pname = "aioimmich"; + version = "0.9.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "mib1185"; + repo = "aioimmich"; + tag = "v${version}"; + hash = "sha256-s2W/Z/psCLvd7zMsaaYi3ZIcEuuRSpyRSvUUfIPe8a4="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail setuptools==80.9.0 setuptools + ''; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + mashumaro + ]; + + pythonImportsCheck = [ "aioimmich" ]; + + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytestCheckHook + syrupy + ]; + + meta = { + changelog = "https://github.com/mib1185/aioimmich/releases/tag/${src.tag}"; + description = "Asynchronous library to fetch albums and assests from immich"; + homepage = "https://github.com/mib1185/aioimmich"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index faf0040093ef..8378b4dc58eb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -333,6 +333,8 @@ self: super: with self; { aioimaplib = callPackage ../development/python-modules/aioimaplib { }; + aioimmich = callPackage ../development/python-modules/aioimmich { }; + aioinflux = callPackage ../development/python-modules/aioinflux { }; aioitertools = callPackage ../development/python-modules/aioitertools { };