about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jupytext/default.nix
blob: 5622ee1669df83119e847c6ee7755a0e9968b54b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib
, buildPythonPackage
, fetchPypi
, testfixtures
, pyyaml
, mock
, nbformat
, pytest
}:

buildPythonPackage rec {
  pname = "jupytext";
  version = "0.8.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1m35m9z4vy480d2200nd4lk9n5s4z3zcnq0d9rdlh4yv5264mrgf";
  };

  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 ];
  };
}