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