about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jupytext/default.nix
blob: eedfcfbcb6e9873de4c35292a741df4a204c86a1 (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
{ lib, buildPythonPackage, fetchPypi, isPy27
, markdown-it-py
, nbformat
, pytest
, pyyaml
, toml
}:

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

  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "9062d001baaa32430fbb94a2c9394ac906db0a58da94e7aa4e414b73fd7d51bc";
  };

  propagatedBuildInputs = [
    markdown-it-py
    nbformat
    pyyaml
    toml
  ];

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