diff options
author | Robert T. McGibbon <rmcgibbo@gmail.com> | 2021-04-27 09:58:39 -0400 |
---|---|---|
committer | Robert T. McGibbon <rmcgibbo@gmail.com> | 2021-05-04 17:24:16 -0400 |
commit | 8fa0db7b69f69079d574b9fc2116aec05b71e8b5 (patch) | |
tree | 3d55d78bc3429c8cd880182f7fdb4406149b6d29 /pkgs/development/python-modules/astropy-healpix | |
parent | 928d3fc2fb2c62d574352a9885bf1a88c6699e1b (diff) |
python3Packages.astropy-healpix: unbreak
Diffstat (limited to 'pkgs/development/python-modules/astropy-healpix')
-rw-r--r-- | pkgs/development/python-modules/astropy-healpix/default.nix | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/astropy-healpix/default.nix b/pkgs/development/python-modules/astropy-healpix/default.nix index e82faba97583f..80ef403b2cc02 100644 --- a/pkgs/development/python-modules/astropy-healpix/default.nix +++ b/pkgs/development/python-modules/astropy-healpix/default.nix @@ -3,25 +3,42 @@ , fetchPypi , numpy , astropy -, astropy-helpers +, astropy-extension-helpers +, setuptools-scm +, pytestCheckHook +, pytest-doctestplus +, hypothesis }: buildPythonPackage rec { pname = "astropy-healpix"; version = "0.6"; - doCheck = false; # tests require pytest-astropy - src = fetchPypi { - inherit pname version; + inherit version; + pname = lib.replaceStrings ["-"] ["_"] pname; sha256 = "409a6621c383641456c074f0f0350a24a4a58e910eaeef14e9bbce3e00ad6690"; }; - propagatedBuildInputs = [ numpy astropy astropy-helpers ]; + nativeBuildInputs = [ + astropy-extension-helpers + setuptools-scm + ]; + + propagatedBuildInputs = [ + numpy + astropy + ]; + + checkInputs = [ + pytestCheckHook + pytest-doctestplus + hypothesis + ]; - # Disable automatic update of the astropy-helper module - postPatch = '' - substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" + # tests must be run in the build directory + preCheck = '' + cd build/lib* ''; meta = with lib; { |