Unverified Commit 70e176b9 authored by annalee's avatar annalee
Browse files

python311Packages.reproject: relax numpy deps, fix filterwarnings marker error

numpy>=2.0.0rc1 required for build-system. unfortunately,
pythonRelaxDepsHook doesn't seem to prevent the check from failing so
remove version manually from pyproject.toml
parent 4259684e
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -9,7 +9,6 @@
, fetchPypi
, fsspec
, numpy
, oldest-supported-numpy
, pytest-astropy
, pytestCheckHook
, pythonOlder
@@ -23,7 +22,7 @@ buildPythonPackage rec {
  version = "0.13.1";
  pyproject = true;

  disabled = pythonOlder "3.9";
  disabled = pythonOlder "3.10";

  src = fetchPypi {
    inherit pname version;
@@ -32,14 +31,14 @@ buildPythonPackage rec {

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace "cython==" "cython>="
      --replace "cython==" "cython>=" \
      --replace "numpy>=2.0.0rc1" "numpy"
  '';

  nativeBuildInputs = [
    astropy-extension-helpers
    cython
    numpy
    oldest-supported-numpy
    setuptools-scm
  ];

@@ -65,6 +64,8 @@ buildPythonPackage rec {
    "-p no:warnings"
    # Uses network
    "--ignore build/lib*/reproject/interpolation/"
    # prevent "'filterwarnings' not found in `markers` configuration option" error
    "-o 'markers=filterwarnings'"
  ];

  pythonImportsCheck = [