{% set name = "pyWinhook" %}
{% set version = "1.5.2" %}

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

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
  sha256: 39bc4fd0477bc2d51d07ad4a9d4923654b417a4f4adc487c67966afa1780daee
  patches:
    - support-python-3.patch

build:
  number: 0
  # Note: --no-deps is currently required due to https://github.com/conda/conda-build/issues/3254
  # Once resolved, it should be removed.
  script: "{{ PYTHON }} -m pip install . --no-deps -vv"
  skip: True  # [not win]

requirements:
  build:
    - {{ compiler('c') }}
    - swig
  host:
    - python <3
    - pip
  run:
    - python <3

test:
  imports:
    - pyWinhook

about:
  home: https://github.com/Tungsteno74/pyWinhook
  license: MIT
  license_family: MIT
  license_file: LICENSE.txt
  summary: 'A fork of pyHook from Peter P. with some updates'
  description: |
    A pyHook fork with some updates for support latest Visual Studio
    compilers.

extra:
  recipe-maintainers:
    - hoechenberger

{% set name = "pyWinhook" %}
{% set version = "1.5.2" %}

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

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.zip
  sha256: 39bc4fd0477bc2d51d07ad4a9d4923654b417a4f4adc487c67966afa1780daee
  patches:
    - support-python-3.patch

build:
  number: 0
  # Note: --no-deps is currently required due to https://github.com/conda/conda-build/issues/3254
  # Once resolved, it should be removed.
  script: "{{ PYTHON }} -m pip install . --no-deps -vv"
  skip: True  # [not win]

requirements:
  build:
    - {{ compiler('c') }}
    - swig
  host:
    - python
    - pip
  run:
    - python

test:
  imports:
    - pyWinhook

about:
  home: https://github.com/Tungsteno74/pyWinhook
  license: MIT
  license_family: MIT
  license_file: LICENSE.txt
  summary: 'A fork of pyHook from Peter P. with some updates'
  description: |
    A pyHook fork with some updates for support latest Visual Studio
    compilers.

extra:
  recipe-maintainers:
    - hoechenberger

Fix download URL and supported Python versions
Fix download URL and supported Python versions
