Files
nixpkgs/pkgs/development/python-modules/corallium/default.nix
Jairo Llopis dfd707a189 corallium: 2.1.1 -> 2.4.0
Switch from poetry-core to uv_build and refresh dependencies to match
the new upstream packaging. Upstream also declares a bogus
self-dependency, which trips the python runtime deps check; drop it in
postPatch. copier-template-tester 3.0.0 requires corallium >= 2.3.0.

Assisted-by: Goose + GLM 5.3 Flash
2026-10-06 13:02:15 +01:00

53 lines
1.2 KiB
Nix

{
beartype,
buildPythonPackage,
fetchFromGitHub,
lib,
rich,
tomli,
typing-extensions,
uv-build,
}:
buildPythonPackage rec {
pname = "corallium";
version = "2.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "KyleKing";
repo = "corallium";
tag = version;
hash = "sha256-BtePG2XcukAytbNyIfH3rBesx7nu7J1TLtfbzZO37Os=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "uv_build>=0.9.26,<2.0" "uv_build"
# Upstream declares a bogus self-dependency which breaks the runtime deps check
substituteInPlace pyproject.toml --replace-fail "'corallium>=2.0.1'," ""
'';
build-system = [
uv-build
];
dependencies = [
beartype
rich
tomli
typing-extensions
];
# Top-level __init__ pulls the full subpackage tree; no optional deps needed
pythonImportsCheck = [ "corallium" ];
# tests/ requires dev deps (structlog, pytest-*) not worth packaging here
meta = {
description = "Shared functionality for the calcipy-ecosystem";
homepage = "https://corallium.kyleking.me";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yajo ];
};
}