Merge pull request #261569 from natsukium/python311Packages-nbmerge-update

python311Packages.nbmerge: unstable-2017-10-23 -> 0.0.4
This commit is contained in:
Nick Cao
2023-10-17 08:49:02 -04:00
committed by GitHub
@@ -1,34 +1,50 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, nbformat
, nose
}:
buildPythonPackage rec {
pname = "nbmerge";
version = "unstable-2017-10-23";
version = "0.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "jbn";
repo = pname;
rev = "fc0ba95e8422340317358ffec4404235defbc06a";
sha256 = "1cn550kjadnxc1sx2xy814248fpzrj3lgvrmsbrwmk03vwaa2hmi";
rev = "refs/tags/v${version}";
hash = "sha256-Uqs/SO/AculHCFYcbjW08kLQX5GSU/eAwkN2iy/vhLM=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ nbformat ];
nativeCheckInputs = [ nose ];
checkPhase = ''
runHook preCheck
patchShebangs .
nosetests -v
PATH=$PATH:$out/bin ./cli_tests.sh
runHook postCheck
'';
pythonImportsCheck = [
"nbmerge"
];
meta = {
description = "A tool to merge/concatenate Jupyter (IPython) notebooks";
inherit (src.meta) homepage;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
mainProgram = "nbmerge";
};
}