1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, nbformat
5, nose
6}:
7
8buildPythonPackage rec {
9 pname = "nbmerge";
10 version = "unstable-2017-10-23";
11
12 src = fetchFromGitHub {
13 owner = "jbn";
14 repo = pname;
15 rev = "fc0ba95e8422340317358ffec4404235defbc06a";
16 sha256 = "1cn550kjadnxc1sx2xy814248fpzrj3lgvrmsbrwmk03vwaa2hmi";
17 };
18
19 propagatedBuildInputs = [ nbformat ];
20 checkInputs = [ nose ];
21
22 checkPhase = ''
23 patchShebangs .
24 nosetests -v
25 PATH=$PATH:$out/bin ./cli_tests.sh
26 '';
27
28 meta = {
29 description = "A tool to merge/concatenate Jupyter (IPython) notebooks";
30 inherit (src.meta) homepage;
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ ];
33 };
34}