tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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
-
{ lib, stdenv
0
2
, buildPythonPackage
3
, fetchFromGitHub
4
, numpy
···
8
, pandas
9
, pyyaml
10
, matplotlib
11
-
, pytest
0
12
}:
13
14
buildPythonPackage rec {
···
30
pandas
31
pyyaml
32
matplotlib
0
33
];
34
35
checkInputs = [
36
-
pytest
37
];
38
39
-
checkPhase = ''
40
-
${lib.optionalString (stdenv.isDarwin) ''
41
# specifically needed for darwin
42
export HOME=$(mktemp -d)
43
mkdir -p $HOME/.matplotlib
44
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
45
-
''}
46
-
47
-
pytest trackpy --ignore trackpy/tests/test_motion.py \
48
-
--ignore trackpy/tests/test_feature_saving.py \
49
-
--ignore trackpy/tests/test_feature.py \
50
-
--ignore trackpy/tests/test_plots.py \
51
-
--ignore trackpy/tests/test_legacy_linking.py
52
'';
53
54
meta = with lib; {
···
49
homepage = "https://github.com/soft-matter/trackpy";
50
license = licenses.bsd3;
51
maintainers = [ maintainers.costrouc ];
52
-
broken = true; # not compatible with latest pandas
53
};
54
}
···
1
+
{ lib
2
+
, stdenv
3
, buildPythonPackage
4
, fetchFromGitHub
5
, numpy
···
7
, pandas
8
, pyyaml
9
, matplotlib
10
+
, numba
11
+
, pytestCheckHook
12
}:
13
14
buildPythonPackage rec {
···
28
pandas
29
pyyaml
30
matplotlib
31
+
numba
32
];
33
34
checkInputs = [
35
+
pytestCheckHook
36
];
37
38
+
preCheck = lib.optionalString stdenv.isDarwin ''
0
39
# specifically needed for darwin
40
export HOME=$(mktemp -d)
41
mkdir -p $HOME/.matplotlib
42
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
0
0
0
0
0
0
0
43
'';
44
45
meta = with lib; {
···
54
homepage = "https://github.com/soft-matter/trackpy";
55
license = licenses.bsd3;
56
maintainers = [ maintainers.costrouc ];
0
57
};
58
}