Files
nixpkgs/pkgs/development/python-modules/marimo/default.nix
thesn10 f353f3655b python3Packages.marimo: fix build with uv-build 0.13
Cause: the package pins its build backend to a uv_build range that excludes the 0.13 series now in nixpkgs (uv_build<0.13.0), so the build fails the build-system dependency check.

Fix: drop the upper bound in `pyproject.toml`.

Assisted-by: Claude Code (claude-sonnet-5-5)
2026-11-12 02:26:49 +01:00

94 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# build-system
uv-build,
# dependencies
click,
docutils,
itsdangerous,
jedi,
loro,
markdown,
msgspec,
narwhals,
packaging,
psutil,
pygments,
pymdown-extensions,
python-multipart,
pyyaml,
pyzmq,
starlette,
tomlkit,
uvicorn,
websockets,
# tests
versionCheckHook,
}:
buildPythonPackage rec {
pname = "marimo";
version = "0.25.1";
pyproject = true;
# The github archive does not include the static assets
src = fetchPypi {
inherit pname version;
hash = "sha256-k02yzrbCuMmuNRSnoi5rIuz1T6vqC2E4rtGYD48VNv8=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'uv_build>=0.8.3,<0.13.0' 'uv_build>=0.8.3'
'';
build-system = [ uv-build ];
pythonRelaxDeps = [ "jedi" ];
dependencies = [
click
docutils
itsdangerous
jedi
loro
markdown
msgspec
narwhals
packaging
psutil
pygments
pymdown-extensions
python-multipart
pyyaml
pyzmq
starlette
tomlkit
uvicorn
websockets
];
pythonImportsCheck = [ "marimo" ];
# The pypi archive does not contain tests so we do not use `pytestCheckHook`
nativeCheckInputs = [
versionCheckHook
];
meta = {
description = "Reactive Python notebook that's reproducible, git-friendly, and deployable as scripts or apps";
homepage = "https://github.com/marimo-team/marimo";
changelog = "https://github.com/marimo-team/marimo/releases/tag/${version}";
license = lib.licenses.asl20;
mainProgram = "marimo";
maintainers = with lib.maintainers; [
akshayka
dmadisetti
];
};
}