python31{1,2}Packages.smart-open: apply patch fix unit tests for python 3.12

apply patch
https://github.com/RaRe-Technologies/smart_open/commit/3d29564ca034a56d343c9d14b178aaa0ff4c937c.patch
to fix unit tests on python 3.12
This commit is contained in:
annalee
2024-05-08 11:30:37 +00:00
parent 4a451cb3ce
commit 2fdf8d8207
@@ -2,6 +2,7 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, fetchpatch
, azure-common
, azure-core
, azure-storage-blob
@@ -31,6 +32,16 @@ buildPythonPackage rec {
hash = "sha256-4HOTaF6AKXGlVCvSGKnnaH73aa4IO0aRxz03XQ4gSd8=";
};
patches = [
# https://github.com/RaRe-Technologies/smart_open/pull/822
# fix test_smart_open.py on python 3.12
(fetchpatch {
name = "fix-smart-open-test.patch";
url = "https://github.com/RaRe-Technologies/smart_open/commit/3d29564ca034a56d343c9d14b178aaa0ff4c937c.patch";
hash = "sha256-CrAeqaIMM8bctWiFnq9uamnIlkaslDyjaWL6k9wUjT8=";
})
];
build-system = [
setuptools
];