1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-24 10:10:37 +03:00
nixpkgs/pkgs/development/python-modules/trackpy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
945 B
Nix
Raw Normal View History

2021-08-08 00:04:32 +03:00
{ lib
, stdenv
2019-07-12 23:35:05 -04:00
, buildPythonPackage
, fetchFromGitHub
, numpy
, scipy
, six
, pandas
, pyyaml
, matplotlib
2021-08-08 00:04:32 +03:00
, numba
, pytestCheckHook
2019-07-12 23:35:05 -04:00
}:
buildPythonPackage rec {
pname = "trackpy";
version = "0.5.0";
2019-07-12 23:35:05 -04:00
src = fetchFromGitHub {
owner = "soft-matter";
repo = pname;
rev = "v${version}";
sha256 = "0if069f4sjyjl7wvzyzk8k9q9qjixswcc6aszrrgfb4a4mix3h1g";
2019-07-12 23:35:05 -04:00
};
propagatedBuildInputs = [
numpy
scipy
six
pandas
pyyaml
matplotlib
2021-08-08 00:04:32 +03:00
numba
2019-07-12 23:35:05 -04:00
];
checkInputs = [
2021-08-08 00:04:32 +03:00
pytestCheckHook
2019-07-12 23:35:05 -04:00
];
2021-08-08 00:04:32 +03:00
preCheck = lib.optionalString stdenv.isDarwin ''
2019-07-12 23:35:05 -04:00
# specifically needed for darwin
export HOME=$(mktemp -d)
mkdir -p $HOME/.matplotlib
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
'';
meta = with lib; {
2019-07-12 23:35:05 -04:00
description = "Particle-tracking toolkit";
homepage = "https://github.com/soft-matter/trackpy";
2019-07-12 23:35:05 -04:00
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}