lol

python311Packages.line-profiler: use pytestCheckHook

+9 -7
+9 -7
pkgs/development/python-modules/line-profiler/default.nix
··· 4 4 , cython 5 5 , isPyPy 6 6 , ipython 7 - , python 8 7 , scikit-build 9 8 , cmake 10 9 , pythonOlder 11 10 , pytestCheckHook 11 + , ubelt 12 12 }: 13 13 14 14 buildPythonPackage rec { ··· 30 30 scikit-build 31 31 ]; 32 32 33 - propagatedBuildInputs = [ 34 - ipython 35 - ]; 33 + passthru.optional-dependencies = { 34 + ipython = [ ipython ]; 35 + }; 36 36 37 37 nativeCheckInputs = [ 38 38 pytestCheckHook 39 - ]; 39 + ubelt 40 + ] ++ passthru.optional-dependencies.ipython; 40 41 41 42 dontUseCmakeConfigure = true; 42 43 ··· 44 45 rm -f _line_profiler.c 45 46 ''; 46 47 47 - checkPhase = '' 48 - PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH cd tests && ${python.interpreter} -m unittest discover -s . 48 + preCheck = '' 49 + rm -r line_profiler 50 + export PATH=$out/bin:$PATH 49 51 ''; 50 52 51 53 pythonImportsCheck = [