Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 39 lines 863 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27 2, mock 3, nbformat 4, pytest 5, pyyaml 6}: 7 8buildPythonPackage rec { 9 pname = "jupytext"; 10 version = "1.2.1"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "05vwxgjh7pzxgdzj0775562bfps8j7w3p7dcf1zfh169whqw9vg8"; 15 }; 16 17 propagatedBuildInputs = [ 18 pyyaml 19 nbformat 20 ] ++ lib.optionals isPy27 [ mock ]; # why they put it in install_requires, who knows 21 22 checkInputs = [ 23 pytest 24 ]; 25 26 # requires test notebooks which are not shipped with the pypi release 27 # also, pypi no longer includes tests 28 doCheck = false; 29 checkPhase = '' 30 pytest 31 ''; 32 33 meta = with lib; { 34 description = "Jupyter notebooks as Markdown documents, Julia, Python or R scripts"; 35 homepage = https://github.com/mwouts/jupytext; 36 license = licenses.mit; 37 maintainers = with maintainers; [ timokau ]; 38 }; 39}