python3Packages.line_profiler: update meta
This commit is contained in:
parent
2e7baecd20
commit
7bb8f13348
|
@ -7,14 +7,18 @@
|
|||
, python
|
||||
, scikit-build
|
||||
, cmake
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "line_profiler";
|
||||
pname = "line-profiler";
|
||||
version = "3.4.0";
|
||||
|
||||
disabled = pythonOlder "3.6" || isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
pname = "line_profiler";
|
||||
inherit version;
|
||||
sha256 = "b6b0a8100a2829358e31ef7c6f427b1dcf2b1d8e5d38b55b219719ecf758aee5";
|
||||
};
|
||||
|
||||
|
@ -24,30 +28,32 @@ buildPythonPackage rec {
|
|||
scikit-build
|
||||
];
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ipython
|
||||
];
|
||||
|
||||
disabled = isPyPy;
|
||||
|
||||
preBuild = ''
|
||||
rm -f _line_profiler.c
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
ipython
|
||||
];
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
preBuild = ''
|
||||
rm -f _line_profiler.c
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
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";
|
||||
homepage = "https://github.com/rkern/line_profiler";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ fridh ];
|
||||
homepage = "https://github.com/pyutils/line_profiler";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fridh ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue