tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.trackpy: unbreak
Artturin
4 years ago
b5eb352a
ed61460d
+7
-13
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
trackpy
default.nix
+7
-13
pkgs/development/python-modules/trackpy/default.nix
···
1
1
-
{ lib, stdenv
1
1
+
{ lib
2
2
+
, stdenv
2
3
, buildPythonPackage
3
4
, fetchFromGitHub
4
5
, numpy
···
7
8
, pandas
8
9
, pyyaml
9
10
, matplotlib
10
10
-
, pytest
11
11
+
, numba
12
12
+
, pytestCheckHook
11
13
}:
12
14
13
15
buildPythonPackage rec {
···
28
30
pandas
29
31
pyyaml
30
32
matplotlib
33
33
+
numba
31
34
];
32
35
33
36
checkInputs = [
34
34
-
pytest
37
37
+
pytestCheckHook
35
38
];
36
39
37
37
-
checkPhase = ''
38
38
-
${lib.optionalString (stdenv.isDarwin) ''
40
40
+
preCheck = lib.optionalString stdenv.isDarwin ''
39
41
# specifically needed for darwin
40
42
export HOME=$(mktemp -d)
41
43
mkdir -p $HOME/.matplotlib
42
44
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
43
43
-
''}
44
44
-
45
45
-
pytest trackpy --ignore trackpy/tests/test_motion.py \
46
46
-
--ignore trackpy/tests/test_feature_saving.py \
47
47
-
--ignore trackpy/tests/test_feature.py \
48
48
-
--ignore trackpy/tests/test_plots.py \
49
49
-
--ignore trackpy/tests/test_legacy_linking.py
50
45
'';
51
46
52
47
meta = with lib; {
···
54
49
homepage = "https://github.com/soft-matter/trackpy";
55
50
license = licenses.bsd3;
56
51
maintainers = [ maintainers.costrouc ];
57
57
-
broken = true; # not compatible with latest pandas
58
52
};
59
53
}