1{ lib 2, buildPythonPackage 3, fetchPypi 4, cython 5, isPyPy 6, ipython 7, python 8}: 9 10buildPythonPackage rec { 11 pname = "line_profiler"; 12 version = "2.1.2"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "efa66e9e3045aa7cb1dd4bf0106e07dec9f80bc781a993fbaf8162a36c20af5c"; 17 }; 18 19 buildInputs = [ cython ]; 20 21 propagatedBuildInputs = [ ipython ]; 22 23 disabled = isPyPy; 24 25 checkPhase = '' 26 ${python.interpreter} -m unittest discover -s tests 27 ''; 28 29 meta = { 30 description = "Line-by-line profiler"; 31 homepage = https://github.com/rkern/line_profiler; 32 license = lib.licenses.bsd3; 33 maintainers = with lib.maintainers; [ fridh ]; 34 }; 35}