{% set name = "chainmap" %}
{% set version = "1.0.1" %}
{% set sha256 = "c1cd76c679dd7af982ec5a45788ef4a0dfc20e77f27ccdeca289a5141862ff64" %}

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

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

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

requirements:
  host:
    - python
    - pip
  run:
    - python

test:
  requires:
    - chainmap
    - pytest
  imports:
    - chainmap
  files:
    - test_chainmap.py
  commands:
    - py.test --pyargs test_chainmap.py

about:
  home: https://bitbucket.org/jeunice/chainmap/overview
  license: PSFL
  license_file: LICENSE.txt
  summary: |
    This module is a polyfill, implementing ChainMap for reasonably-recent 
    versions of Python
  description: |
    This module is a polyfill, implementing ChainMap for reasonably-recent 
    versions of Python that do not have collections.ChainMap–namely, 
    Python 2.6, Python 3.2, and PyPy3 releases based on Python 3.2. 
    (It will also work as expected on Python 2.7, PyPy, and Python 3.3 and 
    higher, but it is not needed there since those verions’ collections modules 
    contains a ChainMap implementation.)
    The code for this package is closely derived from the Python 3.5 source 
    code at hg.python.org, (especially the collections and reprlib modules). 
    Several changes have been made to ensure Python 2.6 compatibility, and 
    tests and packaging have been added.
  dev_url: https://bitbucket.org/jeunice/chainmap/overview

extra:
  recipe-maintainers:
    - astamminger

Add recipe to build chainmap
Add recipe to build chainmap
