depot/third_party/nixpkgs/pkgs/development/python-modules/nbmerge/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

47 lines
876 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
nbformat,
nose,
}:
buildPythonPackage rec {
pname = "nbmerge";
version = "0.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "jbn";
repo = pname;
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 = "Tool to merge/concatenate Jupyter (IPython) notebooks";
inherit (src.meta) homepage;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
mainProgram = "nbmerge";
};
}