mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #74915 from smaret/reproject-0.6
python: reproject: 0.5.1 -> 0.6
This commit is contained in:
commit
88c307c667
1 changed files with 15 additions and 4 deletions
|
@ -6,26 +6,37 @@
|
||||||
, astropy-healpix
|
, astropy-healpix
|
||||||
, astropy-helpers
|
, astropy-helpers
|
||||||
, scipy
|
, scipy
|
||||||
|
, pytest
|
||||||
|
, pytest-astropy
|
||||||
|
, cython
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "reproject";
|
pname = "reproject";
|
||||||
version = "0.5.1";
|
version = "0.6";
|
||||||
|
|
||||||
doCheck = false; # tests require pytest-astropy
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "069rha55cbm8vsi1qf8zydds42lgkcc97sd57hmjw1mgiz025xrp";
|
sha256 = "484fde86d70d972d703038f138d7c2966ddf51171a6e79bd84e82ea270e27af3";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy astropy astropy-healpix astropy-helpers scipy ];
|
propagatedBuildInputs = [ numpy astropy astropy-healpix astropy-helpers scipy ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ astropy-helpers cython ];
|
||||||
|
|
||||||
# Disable automatic update of the astropy-helper module
|
# Disable automatic update of the astropy-helper module
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
|
substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ pytest pytest-astropy ];
|
||||||
|
|
||||||
|
# Tests must be run in the build directory
|
||||||
|
checkPhase = ''
|
||||||
|
cd build/lib*
|
||||||
|
pytest
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Reproject astronomical images";
|
description = "Reproject astronomical images";
|
||||||
homepage = https://reproject.readthedocs.io;
|
homepage = https://reproject.readthedocs.io;
|
||||||
|
|
Loading…
Reference in a new issue