tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.oscrypto: fixup with openssl 3.0.10
Vladimír Čunát
2 years ago
72b94272
025b892d
+15
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
oscrypto
default.nix
support-openssl-3.0.10.patch
+4
pkgs/development/python-modules/oscrypto/default.nix
reviewed
···
22
22
hash = "sha256-CmDypmlc/kb6ONCUggjT1Iqd29xNSLRaGh5Hz36dvOw=";
23
23
};
24
24
25
25
+
patches = [
26
26
+
./support-openssl-3.0.10.patch
27
27
+
];
28
28
+
25
29
postPatch = ''
26
30
for file in oscrypto/_openssl/_lib{crypto,ssl}_c{ffi,types}.py; do
27
31
substituteInPlace $file \
+11
pkgs/development/python-modules/oscrypto/support-openssl-3.0.10.patch
reviewed
···
1
1
+
https://github.com/wbond/oscrypto/issues/75
2
2
+
--- a/oscrypto/_openssl/_libcrypto_cffi.py
3
3
+
+++ b/oscrypto/_openssl/_libcrypto_cffi.py
4
4
+
@@ -37,1 +37,1 @@
5
5
+
-version_match = re.search('\\b(\\d\\.\\d\\.\\d[a-z]*)\\b', version_string)
6
6
+
+version_match = re.search('\\b(\\d\\.\\d\\.\\d+[a-z]*)\\b', version_string)
7
7
+
--- a/oscrypto/_openssl/_libcrypto_ctypes.py
8
8
+
+++ b/oscrypto/_openssl/_libcrypto_ctypes.py
9
9
+
@@ -40,1 +40,1 @@
10
10
+
-version_match = re.search('\\b(\\d\\.\\d\\.\\d[a-z]*)\\b', version_string)
11
11
+
+version_match = re.search('\\b(\\d\\.\\d\\.\\d+[a-z]*)\\b', version_string)