python310Packages.reproject: 0.7.1 -> 0.8
This commit is contained in:
parent
2a8f89575a
commit
636eb40280
@ -1,50 +1,63 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, fetchpatch
|
|
||||||
, numpy
|
|
||||||
, astropy
|
, astropy
|
||||||
|
, astropy-extension-helpers
|
||||||
, astropy-healpix
|
, astropy-healpix
|
||||||
, astropy-helpers
|
, astropy-helpers
|
||||||
, astropy-extension-helpers
|
, buildPythonPackage
|
||||||
, scipy
|
|
||||||
, pytest
|
|
||||||
, pytest-astropy
|
|
||||||
, setuptools-scm
|
|
||||||
, cython
|
, cython
|
||||||
|
, fetchPypi
|
||||||
|
, numpy
|
||||||
|
, pytest-astropy
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, scipy
|
||||||
|
, setuptools-scm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "reproject";
|
pname = "reproject";
|
||||||
version = "0.7.1";
|
version = "0.8";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1jsc3ad518vyys5987fr1achq8qvnz8rm80zp5an9qxlwr4zmh4m";
|
hash = "sha256-Z54sY3R6GViTvMLHrJclrAZ1dH4/9bzIrgqDd9nFbJY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ (fetchpatch {
|
nativeBuildInputs = [
|
||||||
# Can be removed in next release after 0.7.1
|
astropy-extension-helpers
|
||||||
# See https://github.com/astropy/reproject/issues/246
|
astropy-helpers
|
||||||
url = "https://github.com/astropy/reproject/pull/243.patch";
|
cython
|
||||||
sha256 = "0dq3ii39hsrks0b9v306dlqf07dx0hqad8rwajmzw6rfda9m3c2a";
|
setuptools-scm
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy astropy astropy-healpix astropy-helpers scipy ];
|
propagatedBuildInputs = [
|
||||||
nativeBuildInputs = [ astropy-helpers cython astropy-extension-helpers setuptools-scm ];
|
astropy
|
||||||
checkInputs = [ pytest pytest-astropy ];
|
astropy-healpix
|
||||||
|
astropy-helpers
|
||||||
|
numpy
|
||||||
|
scipy
|
||||||
|
];
|
||||||
|
|
||||||
# Tests must be run in the build directory
|
checkInputs = [
|
||||||
checkPhase = ''
|
pytest-astropy
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
cd build/lib*
|
cd build/lib*
|
||||||
pytest
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"reproject"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Reproject astronomical images";
|
description = "Reproject astronomical images";
|
||||||
homepage = "https://reproject.readthedocs.io";
|
homepage = "https://reproject.readthedocs.io";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ maintainers.smaret ];
|
maintainers = with maintainers; [ smaret ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user