{% set version = "1.15.1" %}
package:
name: cffi
version: {{ version }}
source:
url: https://pypi.io/packages/source/c/cffi/cffi-{{ version }}.tar.gz
sha256: d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9
patches:
- setup-linux.patch # [not win]
- 0001-Link-to-dl-library.patch
- apple-jit.patch # [osx]
build:
number: 3
script: {{ PYTHON }} -m pip install . --no-deps -vv
missing_dso_whitelist:
- $RPATH/ld64.so.1 # [s390x]
requirements:
build:
- {{ compiler('c') }}
- patch # [not win]
- m2-patch # [win]
host:
- python
- pip
- setuptools
- wheel
run:
- python
# set lower bound to avoid hotfix to lower it to <3.3
- libffi >=3.4,<3.5 # [not win]
- pycparser
test:
imports:
- cffi
- _cffi_backend
requires:
- pip
commands:
- pip check
about:
home: https://cffi.readthedocs.org/
license: MIT
license_family: MIT
license_file: LICENSE
summary: Foreign Function Interface for Python calling C code.
description: |
Cffi aims to allow users to call C code from Python without having to
learn a 3rd language. It provides a convenient and reliable way to call
compiled C code from Python using interface declarations written in C.
doc_url: https://cffi.readthedocs.io/en/latest/
dev_url: https://foss.heptapod.net/pypy/cffi
doc_source_url: https://foss.heptapod.net/pypy/cffi/-/tree/branch/default/doc/source
extra:
recipe-maintainers:
- goanpeca
- inducer
- ocefpaf
- mingwandroid