summary refs log tree commit diff
path: root/pkgs/development/python-modules/nbmerge/default.nix
blob: 79900197133a2911e462bd5266599f95aca412a9 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, nbformat
, nose
}:

buildPythonPackage rec {
  pname = "nbmerge";
  version = "unstable-2017-10-23";

  src = fetchFromGitHub {
    owner = "jbn";
    repo = pname;
    rev = "fc0ba95e8422340317358ffec4404235defbc06a";
    sha256 = "1cn550kjadnxc1sx2xy814248fpzrj3lgvrmsbrwmk03vwaa2hmi";
  };

  propagatedBuildInputs = [ nbformat ];
  checkInputs = [ nose ];

  checkPhase = ''
    patchShebangs .
    nosetests -v
    PATH=$PATH:$out/bin ./cli_tests.sh
  '';

  meta = {
    description = "A tool to merge/concatenate Jupyter (IPython) notebooks";
    inherit (src.meta) homepage;
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ];
  };
}