2017-04-18 11:50:18 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cython
|
|
|
|
, isPyPy
|
2017-05-03 08:50:48 +02:00
|
|
|
, ipython
|
|
|
|
, python
|
2017-04-18 11:50:18 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "line_profiler";
|
|
|
|
version = "2.0";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "739f8ad0e4bcd0cb82e99afc09e00a0351234f6b3f0b1f7f0090a8a2fbbf8381";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cython ];
|
|
|
|
|
2017-05-03 08:50:48 +02:00
|
|
|
propagatedBuildInputs = [ ipython ];
|
|
|
|
|
2017-04-18 11:50:18 +02:00
|
|
|
disabled = isPyPy;
|
|
|
|
|
2017-05-03 08:50:48 +02:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -s tests
|
|
|
|
'';
|
|
|
|
|
2017-04-18 11:50:18 +02:00
|
|
|
meta = {
|
|
|
|
description = "Line-by-line profiler";
|
|
|
|
homepage = https://github.com/rkern/line_profiler;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|