2022-03-12 06:05:36 +00:00
|
|
|
package:
|
|
|
|
name: cryptography
|
2022-06-22 18:12:05 +00:00
|
|
|
version: 37.0.3
|
2022-03-12 06:05:36 +00:00
|
|
|
|
|
|
|
source:
|
2022-06-22 18:12:05 +00:00
|
|
|
url: https://files.pythonhosted.org/packages/67/82/9dd8ef695c7f928b25927e8956f73bdba09a752a51871678f320c498c535/cryptography-37.0.3.tar.gz
|
|
|
|
sha256: ae430d51c67ac638dfbb42edf56c669ca9c74744f4d225ad11c6f3d355858187
|
2022-06-09 17:57:34 +00:00
|
|
|
patches:
|
|
|
|
# TODO: remove this when chrono makes a release
|
|
|
|
- patches/0001-Use-patched-chrono.patch
|
|
|
|
- patches/0002-Add-instant-patch.patch
|
2022-03-12 06:05:36 +00:00
|
|
|
build:
|
2022-06-09 17:57:34 +00:00
|
|
|
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
|
2022-03-12 06:05:36 +00:00
|
|
|
cflags: |
|
|
|
|
-Wno-implicit-function-declaration
|
2022-05-18 04:14:16 +00:00
|
|
|
$(OPENSSL_INCLUDE_PATH)
|
2022-03-12 06:05:36 +00:00
|
|
|
ldflags: |
|
2022-05-18 04:14:16 +00:00
|
|
|
$(OPENSSL_LIBRARY_PATH)
|
2022-06-14 12:54:07 +00:00
|
|
|
-Wl,--no-entry
|
2022-03-12 06:05:36 +00:00
|
|
|
requirements:
|
|
|
|
run:
|
|
|
|
- openssl
|
|
|
|
- six
|
|
|
|
- cffi
|
2022-08-22 04:35:27 +00:00
|
|
|
host:
|
|
|
|
- openssl
|
|
|
|
- cffi
|
2022-03-12 06:05:36 +00:00
|
|
|
test:
|
|
|
|
imports:
|
|
|
|
- cryptography
|
|
|
|
- cryptography.fernet
|
|
|
|
- cryptography.hazmat
|
|
|
|
- cryptography.utils
|
|
|
|
- cryptography.x509
|