at master 1.1 kB view raw
1{ 2 aiofiles, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 lib, 8 mashumaro, 9 pytest-asyncio, 10 pytestCheckHook, 11 setuptools, 12 syrupy, 13}: 14 15buildPythonPackage rec { 16 pname = "aioimmich"; 17 version = "0.11.1"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "mib1185"; 22 repo = "aioimmich"; 23 tag = "v${version}"; 24 hash = "sha256-f/zTgaLqR0WRhi7ea2djfHbI3/qz2p5lArsKNLz/Y1s="; 25 }; 26 27 postPatch = '' 28 substituteInPlace pyproject.toml \ 29 --replace-fail setuptools==80.9.0 setuptools 30 ''; 31 32 build-system = [ setuptools ]; 33 34 dependencies = [ 35 aiofiles 36 aiohttp 37 mashumaro 38 ]; 39 40 pythonImportsCheck = [ "aioimmich" ]; 41 42 nativeCheckInputs = [ 43 aioresponses 44 pytest-asyncio 45 pytestCheckHook 46 syrupy 47 ]; 48 49 meta = { 50 changelog = "https://github.com/mib1185/aioimmich/releases/tag/${src.tag}"; 51 description = "Asynchronous library to fetch albums and assests from immich"; 52 homepage = "https://github.com/mib1185/aioimmich"; 53 license = lib.licenses.asl20; 54 maintainers = with lib.maintainers; [ dotlambda ]; 55 }; 56}