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 { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, scikitlearn , deprecated
, numpy
, matplotlib
, scipy
, hopcroftkarp , hopcroftkarp
, pytest , joblib
, matplotlib
, numpy
, scikitlearn
, scipy
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -19,26 +21,24 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
scikitlearn deprecated
numpy
matplotlib
scipy
hopcroftkarp hopcroftkarp
joblib
matplotlib
numpy
scikitlearn
scipy
]; ];
checkInputs = [ checkInputs = [
pytest pytestCheckHook
]; ];
checkPhase = '' preCheck = ''
# specifically needed for darwin # specifically needed for darwin
export HOME=$(mktemp -d) export HOME=$(mktemp -d)
mkdir -p $HOME/.matplotlib mkdir -p $HOME/.matplotlib
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc 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; { meta = with lib; {