Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 64 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ lib, buildPythonPackage, fetchPypi, cython, isPyPy, ipython, scikit-build, cmake, pythonOlder, pytestCheckHook, ubelt,}:
buildPythonPackage rec { pname = "line-profiler"; version = "4.2.0"; format = "setuptools";
disabled = pythonOlder "3.8" || isPyPy;
src = fetchPypi { pname = "line_profiler"; inherit version; hash = "sha256-CeEPJfh2UUOAs/rubek/sMIoq7qFgguhpZHds+tFGpY="; };
nativeBuildInputs = [ cython cmake scikit-build ];
optional-dependencies = { ipython = [ ipython ]; };
nativeCheckInputs = [ pytestCheckHook ubelt ] ++ optional-dependencies.ipython;
dontUseCmakeConfigure = true;
preBuild = '' rm -f _line_profiler.c '';
preCheck = '' rm -r line_profiler export PATH=$out/bin:$PATH '';
pythonImportsCheck = [ "line_profiler" ];
meta = with lib; { description = "Line-by-line profiler"; mainProgram = "kernprof"; homepage = "https://github.com/pyutils/line_profiler"; changelog = "https://github.com/pyutils/line_profiler/blob/v${version}/CHANGELOG.rst"; license = licenses.bsd3; };}