pythonPackages.trackpy: init at 0.4.1
This commit is contained in:
parent
715f7d72dd
commit
af412fcef4
57
pkgs/development/python-modules/trackpy/default.nix
Normal file
57
pkgs/development/python-modules/trackpy/default.nix
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, numpy
|
||||||
|
, scipy
|
||||||
|
, six
|
||||||
|
, pandas
|
||||||
|
, pyyaml
|
||||||
|
, matplotlib
|
||||||
|
, pytest
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "trackpy";
|
||||||
|
version = "0.4.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "soft-matter";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "01fdv93f6z16gypmvqnlbjmcih7dmr7a63n5w9swmp11x3if4iyq";
|
||||||
|
};
|
||||||
|
|
||||||
|
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_legacy_linking.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Particle-tracking toolkit";
|
||||||
|
homepage = https://github.com/soft-matter/trackpy;
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = [ maintainers.costrouc ];
|
||||||
|
};
|
||||||
|
}
|
@ -4988,6 +4988,8 @@ in {
|
|||||||
|
|
||||||
traceback2 = callPackage ../development/python-modules/traceback2 { };
|
traceback2 = callPackage ../development/python-modules/traceback2 { };
|
||||||
|
|
||||||
|
trackpy = callPackage ../development/python-modules/trackpy { };
|
||||||
|
|
||||||
linecache2 = callPackage ../development/python-modules/linecache2 { };
|
linecache2 = callPackage ../development/python-modules/linecache2 { };
|
||||||
|
|
||||||
upass = callPackage ../development/python-modules/upass { };
|
upass = callPackage ../development/python-modules/upass { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user