mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
f612ab7900
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
48 lines
924 B
Nix
48 lines
924 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, testfixtures
|
|
, pyyaml
|
|
, mock
|
|
, nbformat
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupytext";
|
|
version = "1.1.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0g365j22gbmq4x60l06id5930aywzy1dx2s25109nqq2l2cxc7ws";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
nbformat
|
|
testfixtures
|
|
];
|
|
checkInputs = [
|
|
pytest
|
|
];
|
|
# setup.py checks for those even though they're not needed at runtime (only
|
|
# for tests), thus not propagated
|
|
buildInputs = [
|
|
mock
|
|
pytest
|
|
];
|
|
|
|
# requires test notebooks which are not shipped with the pypi release
|
|
doCheck = false;
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|