Merge pull request #133052 from Artturin/trackpyunbreak

python3Packages.trackpy: unbreak
This commit is contained in:
Sandro 2021-08-08 15:04:59 +02:00 committed by GitHub
commit 82aa842981
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
{ lib, stdenv
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, numpy
@ -7,7 +8,8 @@
, pandas
, pyyaml
, matplotlib
, pytest
, numba
, pytestCheckHook
}:
buildPythonPackage rec {
@ -28,25 +30,18 @@ buildPythonPackage rec {
pandas
pyyaml
matplotlib
numba
];
checkInputs = [
pytest
pytestCheckHook
];
checkPhase = ''
${lib.optionalString (stdenv.isDarwin) ''
preCheck = lib.optionalString stdenv.isDarwin ''
# specifically needed for darwin
export HOME=$(mktemp -d)
mkdir -p $HOME/.matplotlib
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
''}
pytest trackpy --ignore trackpy/tests/test_motion.py \
--ignore trackpy/tests/test_feature_saving.py \
--ignore trackpy/tests/test_feature.py \
--ignore trackpy/tests/test_plots.py \
--ignore trackpy/tests/test_legacy_linking.py
'';
meta = with lib; {
@ -54,6 +49,5 @@ buildPythonPackage rec {
homepage = "https://github.com/soft-matter/trackpy";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
broken = true; # not compatible with latest pandas
};
}