mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 00:10:12 +00:00
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)
94 lines
1.6 KiB
Nix
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
|
|
];
|
|
};
|
|
}
|