lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python311Packages.nbmerge: refactor

- add mainProgram to meta
- add pythonImportsCheck
- introduce `pyproject = true`
- add runHook to checkPhase

+16
+16
pkgs/development/python-modules/nbmerge/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 + , setuptools 4 5 , nbformat 5 6 , nose 6 7 }: ··· 8 9 buildPythonPackage rec { 9 10 pname = "nbmerge"; 10 11 version = "0.0.4"; 12 + pyproject = true; 11 13 12 14 src = fetchFromGitHub { 13 15 owner = "jbn"; ··· 16 18 hash = "sha256-Uqs/SO/AculHCFYcbjW08kLQX5GSU/eAwkN2iy/vhLM="; 17 19 }; 18 20 21 + nativeBuildInputs = [ 22 + setuptools 23 + ]; 24 + 19 25 propagatedBuildInputs = [ nbformat ]; 26 + 20 27 nativeCheckInputs = [ nose ]; 21 28 22 29 checkPhase = '' 30 + runHook preCheck 31 + 23 32 patchShebangs . 24 33 nosetests -v 25 34 PATH=$PATH:$out/bin ./cli_tests.sh 35 + 36 + runHook postCheck 26 37 ''; 27 38 39 + pythonImportsCheck = [ 40 + "nbmerge" 41 + ]; 42 + 28 43 meta = { 29 44 description = "A tool to merge/concatenate Jupyter (IPython) notebooks"; 30 45 inherit (src.meta) homepage; 31 46 license = lib.licenses.mit; 32 47 maintainers = with lib.maintainers; [ ]; 48 + mainProgram = "nbmerge"; 33 49 }; 34 50 }