3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/trackpy/default.nix

60 lines
1.3 KiB
Nix
Raw Normal View History

2019-07-13 04:35:05 +01:00
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, numpy
, scipy
, six
, pandas
, pyyaml
, matplotlib
, pytest
}:
buildPythonPackage rec {
pname = "trackpy";
version = "0.4.2";
2019-07-13 04:35:05 +01:00
src = fetchFromGitHub {
owner = "soft-matter";
repo = pname;
rev = "v${version}";
sha256 = "16mc22z3104fvygky4gy3gvifjijm42db48v2z1y0fmyf6whi9p6";
2019-07-13 04:35:05 +01:00
};
propagatedBuildInputs = [
numpy
scipy
six
pandas
pyyaml
matplotlib
];
checkInputs = [
pytest
];
checkPhase = ''
${stdenv.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 \
2019-07-13 04:35:05 +01:00
--ignore trackpy/tests/test_legacy_linking.py
'';
meta = with stdenv.lib; {
description = "Particle-tracking toolkit";
homepage = "https://github.com/soft-matter/trackpy";
2019-07-13 04:35:05 +01:00
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
broken = true; # not compatible with latest pandas
2019-07-13 04:35:05 +01:00
};
}