{% set version = "1.14.4" %}

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

source:
  url: https://pypi.io/packages/source/P/PySAL/PySAL-{{ version }}.tar.gz
  sha256: a6f7cff5e26075b070155734079f65dc566e095162263c068646211f1ea9067b

build:
  number: 0
  script:
    - dos2unix pysal/spreg/utils.py   # [win]
    - dos2unix pysal/spreg/probit.py  # [win]
    - dos2unix pysal/spreg/twosls.py  # [win]
    - python setup.py install --single-version-externally-managed --record record.txt

requirements:
  build:
#    - m2-base
#    - m2-filesystem
    - m2-dos2unix
  host:
    - python
    - setuptools
  run:
    - python
    - scipy >=0.11
    - numpy >=1.3

test:
  imports:
    - pysal

about:
  home: http://pysal.org
  license: BSD 3-Clause
  license_family: BSD
  license_file: LICENSE.txt
  summary: 'Library of spatial analysis functions.'
  description: |
    PySAL(Python Spatial Analysis Library) is written in Python intended to support the
    development of high level applications.
  doc_url: http://pysal.readthedocs.io/en/latest/index.html
  doc_source_url: https://github.com/pysal/pysal/blob/master/doc/source/index.rst
  dev_url: https://github.com/pysal

extra:
  recipe-maintainers:
    - sjsrey
    - ocefpaf
