{% set name = "unittest2" %}
{% set version = "1.1.0" %}
{% set sha256 = "22882a0e418c284e1f718a822b3b022944d53d2d908e1690b319a9d3eb2c0579" %}

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

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

build:
  number: 0
  noarch: python
  script: python -m pip install --no-deps --ignore-installed .

requirements:
  host:
    - python <3
    - pip
    - six >=1.4
    - traceback2
  run:
    - python <3
    - six >=1.4
    - traceback2

test:
  imports:
    - unittest2

about:
  home: https://pypi.org/project/unittest2/
  license: PSF 2, BSD
  license_file: {{ RECIPE_DIR }}/LICENSE.txt
  summary: Recent features of the unittest package backported to Python <= 3.4.

extra:
  recipe-maintainers:
    - pkgw

{% set name = "unittest2" %}
{% set version = "1.1.0" %}
{% set sha256 = "22882a0e418c284e1f718a822b3b022944d53d2d908e1690b319a9d3eb2c0579" %}

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

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

build:
  number: 0
  noarch: python
  script: python -m pip install --no-deps --ignore-installed .
  entry_points:
    - unit2 = unittest2.__main__:main_

requirements:
  host:
    - python <3
    - pip
    - six >=1.4
    - traceback2
  run:
    - python <3
    - six >=1.4
    - traceback2

test:
  imports:
    - unittest2
  commands:
    - unit2 --help

about:
  home: https://pypi.org/project/unittest2/
  license: PSF 2, BSD
  license_file: {{ RECIPE_DIR }}/LICENSE.txt
  summary: Recent features of the unittest package backported to Python <= 3.4.

extra:
  recipe-maintainers:
    - pkgw

Add `unit2` entry point with test
Add `unit2` entry point with test
