6ae7ad3cc5
GitOrigin-RevId: a322b32e9d74fb476944ff6cfb55833dc69cfaaa
41 lines
893 B
Nix
41 lines
893 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
, mock
|
|
, nbformat
|
|
, pytest
|
|
, pyyaml
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupytext";
|
|
version = "1.5.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1cebc9f5975b4c08db3de6d7d61b35f8c33a24cf2c8c04eee7b8a7aab8ddc39b";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
nbformat
|
|
toml
|
|
] ++ lib.optionals isPy27 [ mock ]; # why they put it in install_requires, who knows
|
|
|
|
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 ];
|
|
};
|
|
}
|