mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
b2d64e2c28
Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Co-authored-by: Timo Kaufmann <timokau@zoho.com>
45 lines
862 B
Nix
45 lines
862 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
, markdown-it-py
|
|
, nbformat
|
|
, pytest
|
|
, pyyaml
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupytext";
|
|
version = "1.7.1";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "23123b90c267c67716fe6a022dfae49b84fd3809370d83211f2920eb3106bf40";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
markdown-it-py
|
|
nbformat
|
|
pyyaml
|
|
toml
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest
|
|
];
|
|
|
|
# requires test notebooks which are not shipped with the pypi release
|
|
# also, pypi no longer includes tests
|
|
doCheck = false;
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Jupyter notebooks as Markdown documents, Julia, Python or R scripts";
|
|
homepage = "https://github.com/mwouts/jupytext";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ timokau ];
|
|
};
|
|
}
|