3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.persim: fix build

This commit is contained in:
Martin Weinelt 2021-04-27 05:06:02 +02:00
parent 8ee6a9bfc1
commit d97fc73e06
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,12 +1,14 @@
{ lib
, buildPythonPackage
, fetchPypi
, scikitlearn
, numpy
, matplotlib
, scipy
, deprecated
, hopcroftkarp
, pytest
, joblib
, matplotlib
, numpy
, scikitlearn
, scipy
, pytestCheckHook
}:
buildPythonPackage rec {
@ -19,26 +21,24 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [
scikitlearn
numpy
matplotlib
scipy
deprecated
hopcroftkarp
joblib
matplotlib
numpy
scikitlearn
scipy
];
checkInputs = [
pytest
pytestCheckHook
];
checkPhase = ''
preCheck = ''
# specifically needed for darwin
export HOME=$(mktemp -d)
mkdir -p $HOME/.matplotlib
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
# ignore tests due to python 2.7 fail
pytest --ignore test/test_plots.py \
--ignore test/test_visuals.py
'';
meta = with lib; {