Merge pull request #153058 from fabaff/bump-line_profiler
python38Packages.line_profiler: 3.3.1 -> 3.4.0
This commit is contained in:
commit
53c7e1f88b
1 changed files with 22 additions and 16 deletions
|
@ -7,15 +7,19 @@
|
||||||
, python
|
, python
|
||||||
, scikit-build
|
, scikit-build
|
||||||
, cmake
|
, cmake
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "line_profiler";
|
pname = "line-profiler";
|
||||||
version = "3.3.1";
|
version = "3.4.0";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6" || isPyPy;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
pname = "line_profiler";
|
||||||
sha256 = "6e2fb792ca022f900f374f9659fd3e7c530cd4df7d3b7e84be889093b487639f";
|
inherit version;
|
||||||
|
sha256 = "b6b0a8100a2829358e31ef7c6f427b1dcf2b1d8e5d38b55b219719ecf758aee5";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -24,30 +28,32 @@ buildPythonPackage rec {
|
||||||
scikit-build
|
scikit-build
|
||||||
];
|
];
|
||||||
|
|
||||||
dontUseCmakeConfigure = true;
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
ipython
|
ipython
|
||||||
];
|
];
|
||||||
|
|
||||||
disabled = isPyPy;
|
|
||||||
|
|
||||||
preBuild = ''
|
|
||||||
rm -f _line_profiler.c
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
ipython
|
ipython
|
||||||
];
|
];
|
||||||
|
|
||||||
|
dontUseCmakeConfigure = true;
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
rm -f _line_profiler.c
|
||||||
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH cd tests && ${python.interpreter} -m unittest discover -s .
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH cd tests && ${python.interpreter} -m unittest discover -s .
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
pythonImportsCheck = [
|
||||||
|
"line_profiler"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "Line-by-line profiler";
|
description = "Line-by-line profiler";
|
||||||
homepage = "https://github.com/rkern/line_profiler";
|
homepage = "https://github.com/pyutils/line_profiler";
|
||||||
license = lib.licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with lib.maintainers; [ fridh ];
|
maintainers = with maintainers; [ fridh ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue