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

Configure Feed

Select the types of activity you want to include in your feed.

pythonPackages.aplpy: add checkPhase

authored by

Sébastien Maret and committed by
Frederik Rietdijk
ffd71594 723382b0

+12 -3
+12 -3
pkgs/development/python-modules/aplpy/default.nix
··· 11 11 , pillow 12 12 , scikitimage 13 13 , shapely 14 + , pytest 15 + , pytest-astropy 14 16 }: 15 17 16 18 buildPythonPackage rec { 17 19 pname = "aplpy"; 18 20 version = "2.0.3"; 19 - 20 - doCheck = false; # tests require pytest-astropy 21 21 22 22 src = fetchPypi { 23 23 pname = "APLpy"; ··· 28 28 propagatedBuildInputs = [ 29 29 numpy 30 30 astropy 31 - astropy-helpers 32 31 matplotlib 33 32 reproject 34 33 pyavm ··· 37 38 shapely 38 39 ]; 39 40 41 + nativeBuildInputs = [ astropy-helpers ]; 42 + 43 + checkInputs = [ pytest pytest-astropy ]; 44 + 40 45 # Disable automatic update of the astropy-helper module 41 46 postPatch = '' 42 47 substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" 48 + ''; 49 + 50 + # Tests must be run in the build directory 51 + checkPhase = '' 52 + cd build/lib 53 + pytest 43 54 ''; 44 55 45 56 meta = with lib; {