{% set name = "spacy-pkuseg" %}
{% set modulename = "spacy_pkuseg" %}
{% set version = "0.0.32" %}
{% set sha256sum = "f72d9365138e9083a5e78bba8e87190f85ad3f90adddb55f69c58aa862c8484c" %}

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

source:
  url: https://pypi.io/packages/source/s/{{ name }}/{{ modulename }}-{{ version }}.tar.gz
  sha256: {{ sha256sum }}

build:
  number: 0
  skip: True  # [py<36]
  script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation -vv

requirements:
  build:
    - {{ compiler('cxx') }}
  host:
    - python
    - pip
    - setuptools
    - wheel
    - cython
    - numpy
  run:
    - python
    - {{ pin_compatible('numpy') }}
    - srsly >=2.3.0,<3.0.0

test:
  imports:
    - {{ modulename }}
  requires:
    - pytest
    - pip
  commands:
    - pip check
    - python -m pytest --tb=native --pyargs {{ modulename }}

about:
  home: https://github.com/explosion/spacy-pkuseg
  license: MIT
  license_family: MIT
  license_file: LICENSE
  summary: PKUSeg Chinese word segmentation toolkit for spaCy
  description: |
    This package is a fork of pkuseg-python that simplifies installation
    and serialization for use with spaCy. The underlying segmentation
    tools remain unmodified.
  doc_url: https://github.com/explosion/spacy-pkuseg/blob/master/readme/readme_english.md
  dev_url: https://github.com/explosion/spacy-pkuseg

extra:
  recipe-maintainers:
    - ines
    - honnibal
    - adrianeboyd
