3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/jupytext/default.nix

40 lines
875 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, isPy27
, mock
, nbformat
, pytest
, pyyaml
}:
buildPythonPackage rec {
pname = "jupytext";
2019-12-29 09:28:07 +00:00
version = "1.3.1";
src = fetchPypi {
inherit pname version;
2019-12-29 09:28:07 +00:00
sha256 = "132bad60c63debfb371a691cb6668a19938ec268599e9c49f1531a3bf0be7b1c";
};
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 ];
};
}