mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
python3Packages.oscrypto: fixup with openssl 3.0.10
This commit is contained in:
parent
025b892dad
commit
72b94272c9
@ -22,6 +22,10 @@ buildPythonPackage rec {
|
||||
hash = "sha256-CmDypmlc/kb6ONCUggjT1Iqd29xNSLRaGh5Hz36dvOw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./support-openssl-3.0.10.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
for file in oscrypto/_openssl/_lib{crypto,ssl}_c{ffi,types}.py; do
|
||||
substituteInPlace $file \
|
||||
|
@ -0,0 +1,11 @@
|
||||
https://github.com/wbond/oscrypto/issues/75
|
||||
--- a/oscrypto/_openssl/_libcrypto_cffi.py
|
||||
+++ b/oscrypto/_openssl/_libcrypto_cffi.py
|
||||
@@ -37,1 +37,1 @@
|
||||
-version_match = re.search('\\b(\\d\\.\\d\\.\\d[a-z]*)\\b', version_string)
|
||||
+version_match = re.search('\\b(\\d\\.\\d\\.\\d+[a-z]*)\\b', version_string)
|
||||
--- a/oscrypto/_openssl/_libcrypto_ctypes.py
|
||||
+++ b/oscrypto/_openssl/_libcrypto_ctypes.py
|
||||
@@ -40,1 +40,1 @@
|
||||
-version_match = re.search('\\b(\\d\\.\\d\\.\\d[a-z]*)\\b', version_string)
|
||||
+version_match = re.search('\\b(\\d\\.\\d\\.\\d+[a-z]*)\\b', version_string)
|
Loading…
Reference in New Issue
Block a user