python3Packages.bson: fix build with python 3.14
Upstream PR: https://github.com/py-bson/bson/pull/140
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
python-dateutil,
|
||||
six,
|
||||
pytestCheckHook,
|
||||
@@ -19,6 +20,16 @@ buildPythonPackage rec {
|
||||
hash = "sha256-mirRpo27RoOBlwxVOKnHaDIzJOErp7c2VxCOunUm/u4=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Upstream PR: https://github.com/py-bson/bson/pull/140
|
||||
(fetchpatch {
|
||||
name = "python-3.14.patch";
|
||||
url = "https://github.com/py-bson/bson/commit/4e6b4c206f7204034ef74bff8ae84a95d76d1684.patch";
|
||||
includes = [ "setup.py" ];
|
||||
hash = "sha256-JOmW/KMqzFdXKH4TMR/PG1YU3SvLTBc3L3E9kXag3bQ=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
find . -type f -name '*.py' -exec sed -i 's|assertEquals|assertEqual|g' {} +
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user