about summary refs log tree commit diff
path: root/pkgs/development/python-modules/line_profiler/default.nix
blob: 570bba2a8c42ff6298a69b1a390e01c5477e7278 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchPypi
, cython
, isPyPy
, ipython
, python
}:

buildPythonPackage rec {
  pname = "line_profiler";
  version = "2.0";
  name = "${pname}-${version}";

  src = fetchPypi {
    inherit pname version;
    sha256 = "739f8ad0e4bcd0cb82e99afc09e00a0351234f6b3f0b1f7f0090a8a2fbbf8381";
  };

  buildInputs = [ cython ];

  propagatedBuildInputs = [ ipython ];

  disabled = isPyPy;

  checkPhase = ''
    ${python.interpreter} -m unittest discover -s tests
  '';

  meta = {
    description = "Line-by-line profiler";
    homepage = https://github.com/rkern/line_profiler;
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ fridh ];
  };
}