python3Packages.astropy-healpix: unbreak
This commit is contained in:
parent
928d3fc2fb
commit
8fa0db7b69
|
@ -3,25 +3,42 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, numpy
|
, numpy
|
||||||
, astropy
|
, astropy
|
||||||
, astropy-helpers
|
, astropy-extension-helpers
|
||||||
|
, setuptools-scm
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-doctestplus
|
||||||
|
, hypothesis
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "astropy-healpix";
|
pname = "astropy-healpix";
|
||||||
version = "0.6";
|
version = "0.6";
|
||||||
|
|
||||||
doCheck = false; # tests require pytest-astropy
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit version;
|
||||||
|
pname = lib.replaceStrings ["-"] ["_"] pname;
|
||||||
sha256 = "409a6621c383641456c074f0f0350a24a4a58e910eaeef14e9bbce3e00ad6690";
|
sha256 = "409a6621c383641456c074f0f0350a24a4a58e910eaeef14e9bbce3e00ad6690";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy astropy astropy-helpers ];
|
nativeBuildInputs = [
|
||||||
|
astropy-extension-helpers
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
# Disable automatic update of the astropy-helper module
|
propagatedBuildInputs = [
|
||||||
postPatch = ''
|
numpy
|
||||||
substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
|
astropy
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
pytest-doctestplus
|
||||||
|
hypothesis
|
||||||
|
];
|
||||||
|
|
||||||
|
# tests must be run in the build directory
|
||||||
|
preCheck = ''
|
||||||
|
cd build/lib*
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue