contrib/guix/patches/oscrypto-hard-code-openssl.patch
raw| 1 | diff --git a/oscrypto/__init__.py b/oscrypto/__init__.py |
| 2 | index eb27313..371ab24 100644 |
| 3 | --- a/oscrypto/__init__.py |
| 4 | +++ b/oscrypto/__init__.py |
| 5 | @@ -302,3 +302,8 @@ def load_order(): |
| 6 | 'oscrypto._win.tls', |
| 7 | 'oscrypto.tls', |
| 8 | ] |
| 9 | + |
| 10 | + |
| 11 | +paths = '@GUIX_OSCRYPTO_USE_OPENSSL@'.split(',') |
| 12 | +assert len(paths) == 2, 'Value for OSCRYPTO_USE_OPENSSL env var must be two paths separated by a comma' |
| 13 | +use_openssl(*paths) |