pyodide/packages/pyerfa/meta.yaml

34 lines
1.0 KiB
YAML
Raw Normal View History

package:
name: pyerfa
version: 2.0.0.1
source:
url: https://files.pythonhosted.org/packages/78/fd/0148f0e54f0c6f48a141409df65d74a5f1dae2e139f23d50a43c58c16098/pyerfa-2.0.0.1.tar.gz
sha256: 2fd4637ffe2c1e6ede7482c13f583ba7c73119d78bef90175448ce506a0ede30
patches:
# Patch fixes error:
#
# erfa/ufunc.c:9916:54: error: incompatible function pointer types
# initializing 'PyUFuncGenericFunction' ... with an expression of type ...
#
# It has been upstreamed: https://github.com/liberfa/pyerfa/pull/89
# Make sure to remove python3.10 erfa_generator.py below when we remove the
# patch.
- patches/0001-Fix-compilation-with-Wincompatible-function-pointer-.patch
build:
script: |
# regenerate erfa/ufunc.c from our patched erfa/ufunc.c.templ.
python3.10 erfa_generator.py
requirements:
host:
- numpy
run:
- numpy
test:
imports:
- erfa
about:
home: https://github.com/liberfa/pyerfa
PyPI: https://pypi.org/project/pyerfa
summary: Python bindings for ERFA
license: BSD 3-Clause License