mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
40 lines
865 B
Nix
40 lines
865 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
, mock
|
|
, nbformat
|
|
, pytest
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupytext";
|
|
version = "1.4.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "126lmz702hbk7gyr4i6gkicmycx7zgsgjf47a6izq2d17bs0a9ji";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
nbformat
|
|
] ++ 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 ];
|
|
};
|
|
}
|