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.0";
13 name = "${pname}-${version}";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "739f8ad0e4bcd0cb82e99afc09e00a0351234f6b3f0b1f7f0090a8a2fbbf8381";
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}