1{ lib
2, buildPythonPackage
3, fetchPypi
4, testfixtures
5, pyyaml
6, mock
7, nbformat
8, pytest
9}:
10
11buildPythonPackage rec {
12 pname = "jupytext";
13 version = "0.8.6";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "1m35m9z4vy480d2200nd4lk9n5s4z3zcnq0d9rdlh4yv5264mrgf";
18 };
19
20 propagatedBuildInputs = [
21 pyyaml
22 nbformat
23 testfixtures
24 ];
25 checkInputs = [
26 pytest
27 ];
28 # setup.py checks for those even though they're not needed at runtime (only
29 # for tests), thus not propagated
30 buildInputs = [
31 mock
32 pytest
33 ];
34
35 # requires test notebooks which are not shipped with the pypi release
36 doCheck = false;
37 checkPhase = ''
38 py.test
39 '';
40
41 meta = with lib; {
42 description = "Jupyter notebooks as Markdown documents, Julia, Python or R scripts";
43 homepage = https://github.com/mwouts/jupytext;
44 license = licenses.mit;
45 maintainers = with maintainers; [ timokau ];
46 };
47}