2017-04-18 10:50:18 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cython
|
|
|
|
, isPyPy
|
2017-05-03 07:50:48 +01:00
|
|
|
, ipython
|
|
|
|
, python
|
2020-05-10 09:27:56 +01:00
|
|
|
, scikit-build
|
2017-04-18 10:50:18 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "line_profiler";
|
2020-03-29 12:56:39 +01:00
|
|
|
version = "3.0.2";
|
2017-04-18 10:50:18 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-03-29 12:56:39 +01:00
|
|
|
sha256 = "7218ad6bd81f8649b211974bf108933910f016d66b49651effe7bbf63667d141";
|
2017-04-18 10:50:18 +01:00
|
|
|
};
|
|
|
|
|
2020-05-10 09:27:56 +01:00
|
|
|
nativeBuildInputs = [ cython ];
|
2019-07-14 20:00:36 +01:00
|
|
|
|
2020-05-10 09:27:56 +01:00
|
|
|
propagatedBuildInputs = [ ipython scikit-build ];
|
2017-05-03 07:50:48 +01:00
|
|
|
|
2017-04-18 10:50:18 +01:00
|
|
|
disabled = isPyPy;
|
|
|
|
|
2019-07-14 20:00:36 +01:00
|
|
|
preBuild = ''
|
|
|
|
rm -f _line_profiler.c
|
|
|
|
'';
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/rkern/line_profiler";
|
2017-04-18 10:50:18 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
2020-05-10 09:27:56 +01:00
|
|
|
broken = true;
|
2017-04-18 10:50:18 +01:00
|
|
|
};
|
2019-07-14 20:00:36 +01:00
|
|
|
}
|