Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 79 lines
Nix
at llvm-cleanup
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ lib, stdenv, buildPythonPackage, fetchPypi, hatch-jupyter-builder, hatchling, jupyter-client, markdown-it-py, mdit-py-plugins, nbformat, notebook, packaging, pytest-xdist, pytestCheckHook, pythonOlder, pyyaml, tomli,}:
buildPythonPackage rec { pname = "jupytext"; version = "1.16.2"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi { inherit pname version; hash = "sha256-hifdm+y769ecxKTtRyfYnXjmBrS0ZOq3I1ezsCkCOhQ="; };
build-system = [ hatch-jupyter-builder hatchling ];
dependencies = [ markdown-it-py mdit-py-plugins nbformat packaging pyyaml ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
nativeCheckInputs = [ jupyter-client notebook pytest-xdist pytestCheckHook ];
preCheck = '' # Tests that use a Jupyter notebook require $HOME to be writable export HOME=$(mktemp -d); export PATH=$out/bin:$PATH; '';
disabledTestPaths = [ "tests/external" ];
disabledTests = lib.optionals stdenv.isDarwin [ # requires access to trash "test_load_save_rename" ];
pythonImportsCheck = [ "jupytext" "jupytext.cli" ];
meta = with lib; { description = "Jupyter notebooks as Markdown documents, Julia, Python or R scripts"; homepage = "https://github.com/mwouts/jupytext"; changelog = "https://github.com/mwouts/jupytext/releases/tag/v${version}"; license = licenses.mit; maintainers = teams.jupyter.members; mainProgram = "jupytext"; };}