{% set name = "pywin32" %}
{% set version = "227" %}
{% set hash_type = "sha256" %}
{% set hash = "f82946fb29d55a27b3abcd0b527ef2e8da6ea05b01dfcc40bfc14847b7673e8e" %}

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

source:
  fn: {{ name }}-{{ version }}.zip
  url: https://github.com/mhammond/pywin32/archive/b{{ version }}.zip
  {{ hash_type }}: {{ hash }}
  patches:
    # - 0001-scintilla_makefiles.patch
    # - ignore_exchange_plugin.patch   # [win64]
    # running the post-install script fails, because we're not installing to the root system.
    #    Just skip it - it's stuff like registering COM stuff that we don't handle anyway.
    # - nuke_post_install.patch
    # - remove-horrible-PATH-hack-from-pth-file.patch

build:
  number: 0
  skip: True  # [not win]

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

about:
  home: https://sourceforge.net/projects/pywin32
  license: PSF
  summary: Python extensions for Windows
  description: |
    A set of extension modules that provides access to many of the Windows API functions.
  doc_url: https://pypi.python.org/pypi/pywin32
  doc_source_url: https://sourceforge.net/projects/pywin32/

extra:
  recipe-maintainers:
    - mingwandroid
    - nicoddemus
