python.pkgs.line_profiler: fix build
This commit is contained in:
parent
a99ceffcb6
commit
9b6a64a317
@ -6,6 +6,7 @@
|
|||||||
, ipython
|
, ipython
|
||||||
, python
|
, python
|
||||||
, scikit-build
|
, scikit-build
|
||||||
|
, cmake
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -17,9 +18,17 @@ buildPythonPackage rec {
|
|||||||
sha256 = "7218ad6bd81f8649b211974bf108933910f016d66b49651effe7bbf63667d141";
|
sha256 = "7218ad6bd81f8649b211974bf108933910f016d66b49651effe7bbf63667d141";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cython ];
|
nativeBuildInputs = [
|
||||||
|
cython
|
||||||
|
cmake
|
||||||
|
scikit-build
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ ipython scikit-build ];
|
dontUseCmakeConfigure = true;
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
ipython
|
||||||
|
];
|
||||||
|
|
||||||
disabled = isPyPy;
|
disabled = isPyPy;
|
||||||
|
|
||||||
@ -27,8 +36,12 @@ buildPythonPackage rec {
|
|||||||
rm -f _line_profiler.c
|
rm -f _line_profiler.c
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
ipython
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
${python.interpreter} -m unittest discover -s tests
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH cd tests && ${python.interpreter} -m unittest discover -s .
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
@ -36,6 +49,5 @@ buildPythonPackage rec {
|
|||||||
homepage = "https://github.com/rkern/line_profiler";
|
homepage = "https://github.com/rkern/line_profiler";
|
||||||
license = lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
maintainers = with lib.maintainers; [ fridh ];
|
maintainers = with lib.maintainers; [ fridh ];
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user