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 name = "${pname}-${version}"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "efa66e9e3045aa7cb1dd4bf0106e07dec9f80bc781a993fbaf8162a36c20af5c"; 18 }; 19 20 buildInputs = [ cython ]; 21 22 propagatedBuildInputs = [ ipython ]; 23 24 disabled = isPyPy; 25 26 checkPhase = '' 27 ${python.interpreter} -m unittest discover -s tests 28 ''; 29 30 meta = { 31 description = "Line-by-line profiler"; 32 homepage = https://github.com/rkern/line_profiler; 33 license = lib.licenses.bsd3; 34 maintainers = with lib.maintainers; [ fridh ]; 35 }; 36}