mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
0b47606829
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-jupytext/versions
40 lines
863 B
Nix
40 lines
863 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
, mock
|
|
, nbformat
|
|
, pytest
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupytext";
|
|
version = "1.2.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0a2c00bncf68havs3msra6jkx8frbv3yal56mk85wnkwhzlahj0c";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|