python3Packages.trackpy: unbreak
This commit is contained in:
parent
ed61460de2
commit
b5eb352a05
|
@ -1,4 +1,5 @@
|
||||||
{ lib, stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, numpy
|
, numpy
|
||||||
|
@ -7,7 +8,8 @@
|
||||||
, pandas
|
, pandas
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, pytest
|
, numba
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -28,25 +30,18 @@ buildPythonPackage rec {
|
||||||
pandas
|
pandas
|
||||||
pyyaml
|
pyyaml
|
||||||
matplotlib
|
matplotlib
|
||||||
|
numba
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
preCheck = lib.optionalString stdenv.isDarwin ''
|
||||||
${lib.optionalString (stdenv.isDarwin) ''
|
|
||||||
# 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
|
||||||
''}
|
|
||||||
|
|
||||||
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; {
|
meta = with lib; {
|
||||||
|
@ -54,6 +49,5 @@ buildPythonPackage rec {
|
||||||
homepage = "https://github.com/soft-matter/trackpy";
|
homepage = "https://github.com/soft-matter/trackpy";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = [ maintainers.costrouc ];
|
||||||
broken = true; # not compatible with latest pandas
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue