From 32257c8e85cc1d07f3658916aef3816c84956aac Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 14 Oct 2025 09:37:41 +0000 Subject: [PATCH] nemorosa: init at 0.3.0 --- pkgs/by-name/ne/nemorosa/package.nix | 65 ++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 pkgs/by-name/ne/nemorosa/package.nix diff --git a/pkgs/by-name/ne/nemorosa/package.nix b/pkgs/by-name/ne/nemorosa/package.nix new file mode 100644 index 000000000000..11f772be2daf --- /dev/null +++ b/pkgs/by-name/ne/nemorosa/package.nix @@ -0,0 +1,65 @@ +{ + lib, + fetchFromGitHub, + python3Packages, +}: + +python3Packages.buildPythonApplication rec { + pname = "nemorosa"; + version = "0.3.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "KyokoMiki"; + repo = "nemorosa"; + tag = version; + hash = "sha256-UBvtff5fU3kH/+Kw426+yyoyJ3aASBIYDPX+X5jqkA8="; + }; + + # Upstream uses overly strict, fresh version specifiers + pythonRelaxDeps = true; + + # `build-system` requirements are seemingly not covered by pythonRelaxDeps + postPatch = '' + sed -i 's/requires = \["uv_build.*"\]/requires = ["uv_build"]/' pyproject.toml + ''; + + build-system = with python3Packages; [ uv-build ]; + + dependencies = + with python3Packages; + [ + aiolimiter + apscheduler + beautifulsoup4 + defusedxml + deluge-client + fastapi + httpx + humanfriendly + msgspec + platformdirs + qbittorrent-api + reflink-copy + sqlalchemy + torf + transmission-rpc + uvicorn + uvloop + ] + ++ beautifulsoup4.optional-dependencies.lxml + ++ msgspec.optional-dependencies.yaml + ++ sqlalchemy.optional-dependencies.aiosqlite + ++ uvicorn.optional-dependencies.standard; + + pythonImportsCheck = [ "nemorosa" ]; + + meta = { + description = "Specialized cross-seeding tool designed for music torrents"; + homepage = "https://github.com/KyokoMiki/nemorosa"; + changelog = "https://github.com/KyokoMiki/nemorosa/releases"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ ambroisie ]; + mainProgram = "nemorosa"; + }; +}