{% set name = "derivative" %}
{% set version = "0.3.0" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
  sha256: 50d0ce9999d385d1aa22b4cd0553d788ff89dcfab1531c5895c9b78bbc00e507

build:
  noarch: python
  number: 0
  script: "{{ PYTHON }} -m pip install . -vv"

requirements:
  host:
    - pip
    - python >=3.6
  run:
    - numpy >=1.18.3
    - python >=3.6
    - scikit-learn
    - scipy >=1.4.1

test:
  imports:
    - derivative

about:
  home: https://github.com/andgoldschmidt/derivative
  license: MIT
  license_family: MIT
  license_file: LICENSE
  summary: 'Numerical differentiation in python.'
  doc_url: https://derivative.readthedocs.io
  dev_url: https://github.com/andgoldschmidt/derivative

extra:
  recipe-maintainers:
    - moorepants

{% set name = "derivative" %}
{% set version = "0.3.0" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
  sha256: 50d0ce9999d385d1aa22b4cd0553d788ff89dcfab1531c5895c9b78bbc00e507

build:
  noarch: python
  number: 0
  # This package does not have a setup.py in the github repository but one is
  # generated in the tarball. The pyproject.toml file doesn't let a normal
  # setup.py installation work, so remove it.
  # Solution taken from: https://github.com/conda-forge/staged-recipes/pull/12652
  script: "/bin/rm -f pyproject.toml && {{ PYTHON }} -m pip install . -vv"

requirements:
  host:
    - pip
    - python >=3.6
  run:
    - numpy >=1.18.3
    - python >=3.6
    - scikit-learn
    - scipy >=1.4.1

test:
  imports:
    - derivative

about:
  home: https://github.com/andgoldschmidt/derivative
  license: MIT
  license_family: MIT
  license_file: LICENSE
  summary: 'Numerical differentiation in python.'
  doc_url: https://derivative.readthedocs.io
  dev_url: https://github.com/andgoldschmidt/derivative

extra:
  recipe-maintainers:
    - moorepants

Remove the toml file from the tarball.
Remove the toml file from the tarball.
