nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python3Packages.trackpy: unbreak

Artturin b5eb352a ed61460d

+7 -13
+7 -13
pkgs/development/python-modules/trackpy/default.nix
··· 1 - { lib, stdenv 2 , buildPythonPackage 3 , fetchFromGitHub 4 , numpy ··· 8 , pandas 9 , pyyaml 10 , matplotlib 11 - , pytest 12 }: 13 14 buildPythonPackage rec { ··· 30 pandas 31 pyyaml 32 matplotlib 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 '' 39 # specifically needed for darwin 40 export HOME=$(mktemp -d) 41 mkdir -p $HOME/.matplotlib 42 echo "backend: ps" > $HOME/.matplotlib/matplotlibrc 43 ''; 44 45 meta = with lib; { ··· 54 homepage = "https://github.com/soft-matter/trackpy"; 55 license = licenses.bsd3; 56 maintainers = [ maintainers.costrouc ]; 57 }; 58 }