nixpkgs/pkgs/development/python-modules/nbmerge/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

35 lines
721 B
Nix

{ 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; [ globin ];
};
}