{% set version = "1.3.11" %}

package:
    name: mkl_fft
    version: {{ version }}

source:
    url: https://github.com/IntelPython/mkl_fft/archive/v{{version}}.tar.gz
    sha256: d881028e1a1a982e7a9b8ad2d56cf0fc3f655579410918c071aee54ae6334511
    patches:
      # setup.py shows dependency on mkl, which we call mkl-service in conda...
      - 0001-install_requires-mkl-service.patch

build:
  number: 0
  skip: True  # [not x86]
  skip: True  # [py<39 or osx]
  script: {{PYTHON}} -m pip install --no-build-isolation --no-deps .
  script_env:
   - MKLROOT={{PREFIX}}

requirements:
    build:
      - {{ compiler('c') }}
      - patch  # [unix]
      - m2-patch  # [win]
    host:
      - python
      - pip
      - setuptools
      - wheel
      - mkl-devel  {{ mkl }}
      - cython 3
      - numpy-base 2
    run:
      - python
      - mkl
      - mkl-service
      - numpy >=1.16

test:
    commands:
      - pytest -v --pyargs mkl_fft
      - pip check
    requires:
      - pytest
      - pip
    imports:
      - mkl_fft
      - mkl_fft._numpy_fft
      - mkl_fft._scipy_fft
      - mkl_fft.interfaces
      - mkl_fft.interfaces.numpy_fft
      - mkl_fft.interfaces.scipy_fft

about:
    home: https://github.com/IntelPython/mkl_fft
    license: BSD-3-Clause
    license_file: LICENSE.txt
    license_family: BSD
    description:
        NumPy-based implementation of Fast Fourier Transform using Intel (R) Math Kernel Library.
        Supports in-place and out-of-place, 1D and ND complex FFT on arrays of single and double precision
        with arbitrary memory layout, so long as array strides are multiples of its itemsize.
    summary: NumPy-based implementation of Fast Fourier Transform using Intel (R) Math Kernel Library.
    dev_url: https://github.com/IntelPython/mkl_fft
    doc_url: https://github.com/IntelPython/mkl_fft

extra:
  recipe-maintainers:
     - oleksandr-pavlyk
