Merge pull request #310074 from annaleeleaves/smart-open-fix-tests

python31{1,2}Packages.smart-open: apply patch fix unit tests
This commit is contained in:
Weijia Wang 2024-05-08 17:15:20 +02:00 committed by GitHub
commit 2cf3ffff21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 0 deletions

View File

@ -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
];