pyodide/packages/cryptography/meta.yaml

40 lines
1.2 KiB
YAML

package:
name: cryptography
version: 36.0.2
_disabled: true
source:
url: https://files.pythonhosted.org/packages/10/a7/51953e73828deef2b58ba1604de9167843ee9cd4185d8aaffcb45dd1932d/cryptography-36.0.2.tar.gz
sha256: 70f8f4f7bb2ac9f340655cbac89d68c527af5bb4387522a8413e841e3e6628c9
patches:
# TODO: remove this when chrono makes a release
- patches/0001-Use-patched-chrono.patch
- patches/0002-Add-instant-patch.patch
build:
script: |
export OPENSSL_INCLUDE_PATH=$(pkg-config --cflags-only-I --dont-define-prefix openssl)
export OPENSSL_LIBRARY_PATH=$(pkg-config --libs-only-L --dont-define-prefix openssl)
source $CARGO_HOME/env
# TODO: remove this when chrono makes a release
git clone --depth 1 https://github.com/hoodmane/chrono.git --branch pyodide
# TODO: remove this when instant makes a release
git clone --depth 1 https://github.com/hoodmane/instant.git --branch emscripten-no-leading-underscore
cflags: |
-Wno-implicit-function-declaration
$(OPENSSL_INCLUDE_PATH)
ldflags: |
$(OPENSSL_LIBRARY_PATH)
requirements:
run:
- openssl
- six
- cffi
test:
imports:
- cryptography
- cryptography.fernet
- cryptography.hazmat
- cryptography.utils
- cryptography.x509