Files
nixpkgs/pkgs/development/python-modules/marimo/default.nix
T
Martin Weinelt b79da2786f Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/development/python-modules/bundlewrap/default.nix
	pkgs/development/python-modules/coverage/default.nix
	pkgs/development/python-modules/h5netcdf/default.nix
	pkgs/development/python-modules/hypothesis/default.nix
	pkgs/development/python-modules/numba/default.nix
	pkgs/development/python-modules/optype/default.nix
	pkgs/development/python-modules/setuptools-git-versioning/default.nix
	pkgs/development/python-modules/sphinx/default.nix
2026-02-15 16:17:41 +01:00

94 lines
1.7 KiB
Nix

{
lib,
buildPythonPackage,
fetchpatch2,
fetchPypi,
# build-system
uv-build,
# dependencies
click,
docutils,
itsdangerous,
jedi,
loro,
markdown,
narwhals,
packaging,
psutil,
pygments,
pymdown-extensions,
pyyaml,
ruff,
starlette,
tomlkit,
uvicorn,
websockets,
# tests
versionCheckHook,
}:
buildPythonPackage rec {
pname = "marimo";
version = "0.19.4";
pyproject = true;
# The github archive does not include the static assets
src = fetchPypi {
inherit pname version;
hash = "sha256-7sO3ZcP9mNY+IBfFagJOd5ppI8tW52gueIdtT+SUCbc=";
};
patches = [
# https://github.com/marimo-team/marimo/pull/6714
(fetchpatch2 {
name = "uv-build.patch";
url = "https://github.com/Prince213/marimo/commit/b1c690e82e8117c451a74fdf172eb51a4861853d.patch?full_index=1";
hash = "sha256-iFS5NSGjaGdECRk0LCRSA8XzRb1/sVSZCTRLy6taHNU=";
})
];
build-system = [ uv-build ];
dependencies = [
click
docutils
itsdangerous
jedi
loro
markdown
narwhals
packaging
psutil
pygments
pymdown-extensions
pyyaml
ruff
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
];
};
}