{% set name = "iam-units" %}
{% set version = "2020.4.21" %}
{% set hash = "042f298a86888aa5fe7771b85549c2f90ffc39255c00670c0ec73c058df647b5" %}

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

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

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

requirements:
  host:
  - python
  - pip
  - setuptools-scm
  run:
  - python
  - pint

test:
  imports:
  - iam_units
  - iam_units.emissions

about:
  home: https://github.com/IAMconsortium/units
  license: GPL-3.0-or-later
  license_file: LICENSE
  summary: Unit definitions for integrated-assessment research
  description: |
    Pint-compatible definitions of energy, climate, and related units, to
    supplement the SI and other units included in Pint's default_en.txt.

extra:
  recipe-maintainers:
  - khaeru

{% set name = "iam-units" %}
{% set name_ = "iam_units" %}
{% set version = "2020.4.21" %}
{% set hash = "042f298a86888aa5fe7771b85549c2f90ffc39255c00670c0ec73c058df647b5" %}

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

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

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

requirements:
  host:
  - python
  - pip
  - setuptools-scm
  run:
  - python
  - pint

test:
  imports:
  - iam_units
  - iam_units.emissions

about:
  home: https://github.com/IAMconsortium/units
  license: GPL-3.0-or-later
  license_file: LICENSE
  summary: Unit definitions for integrated-assessment research
  description: |
    Pint-compatible definitions of energy, climate, and related units, to
    supplement the SI and other units included in Pint's default_en.txt.

extra:
  recipe-maintainers:
  - khaeru

Use '-' and '_' where appropriate in name/PyPI URL
Use '-' and '_' where appropriate in name/PyPI URL
