-
Notifications
You must be signed in to change notification settings - Fork 74
Add pynacl #2965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Add pynacl #2965
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6ca7e83
Initial plan
Copilot 68ccaaa
Add pynacl recipe for emscripten-forge
Copilot 92b510e
Fix YAML syntax for compiler and make requirements
IsabelParedes b057856
Add license_file field to pynacl recipe
Copilot 77b595c
Clean up url
IsabelParedes 8f97d96
Update cffi dependency in recipe.yaml
IsabelParedes 184cb29
Add build.sh script with --host flag for cross-compilation
Copilot 18f5f44
Refine build script with proper environment variables for PyNaCl
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Configure cross-compilation for PyNaCl's bundled libsodium | ||
| # PyNaCl builds its bundled libsodium and needs to know about cross-compilation | ||
|
|
||
| # Set environment variables that autotools/configure scripts recognize | ||
| export CHOST="wasm32-unknown-emscripten" | ||
|
|
||
| # PyNaCl specific environment variables for bundled libsodium | ||
| export LIBSODIUM_MAKE_ARGS="" | ||
| export LIBSODIUM_CONFIGURE_ARGS="--host=wasm32-unknown-emscripten" | ||
|
|
||
| # Build PyNaCl | ||
| $PYTHON -m pip install . $PIP_ARGS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| context: | ||
| name: pynacl | ||
| version: 1.6.0 | ||
|
|
||
| package: | ||
| name: ${{ name }} | ||
| version: ${{ version }} | ||
|
|
||
| source: | ||
| - url: https://pypi.io/packages/source/${{ name[0] }}/${{ name }}/${{ name }}-${{ version }}.tar.gz | ||
| sha256: cb36deafe6e2bce3b286e5d1f3e1c246e0ccdb8808ddb4550bb2792f2df298f2 | ||
|
|
||
| build: | ||
| number: 0 | ||
| script: build.sh | ||
|
|
||
| requirements: | ||
| build: | ||
| - ${{ compiler('c') }} | ||
| - cross-python_${{target_platform}} | ||
| - python | ||
| - pip | ||
| - make | ||
| - cffi | ||
| host: | ||
| - python | ||
| - cffi | ||
| - pip | ||
| run: | ||
| - cffi | ||
|
|
||
| tests: | ||
| - script: pytester | ||
| files: | ||
| recipe: | ||
| - test_import_pynacl.py | ||
| requirements: | ||
| build: | ||
| - pytester | ||
| run: | ||
| - pytester-run | ||
|
|
||
| about: | ||
| homepage: https://pynacl.readthedocs.io/ | ||
| license: Apache-2.0 | ||
| license_file: LICENSE | ||
| license_family: Apache | ||
| summary: Python binding to the Networking and Cryptography (NaCl) library | ||
| description: | | ||
| PyNaCl is a Python binding to the Networking and Cryptography library (NaCl). | ||
| These libraries have a stated goal of improving usability, security and speed. | ||
| documentation: https://pynacl.readthedocs.io/ | ||
|
|
||
| extra: | ||
| recipe-maintainers: | ||
| - Copilot | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| def test_import_pynacl(): | ||
| import nacl | ||
| import nacl.secret | ||
| import nacl.public | ||
| import nacl.utils | ||
| import nacl.hash | ||
| import nacl.signing | ||
| import nacl.encoding |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.