python312Packages.pytest-examples: fix add patches due failing tests

Added the patches:
https://github.com/pydantic/pytest-examples/commit/3bef5d644fe3fdb076270833768e4c6df9148530
https://github.com/pydantic/pytest-examples/commit/551ba911713c2859caabc91b664723dd6bc800c5

as some tests where failing without them and prevented the package from
building.
This commit is contained in:
Funkeleinhorn
2024-03-09 22:14:02 +01:00
parent 047bc33866
commit caaf070e77
@@ -2,6 +2,7 @@
, black
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, hatchling
, pytest
, pytestCheckHook
@@ -24,6 +25,17 @@ buildPythonPackage rec {
hash = "sha256-jCxOGDJlFkMH9VtaaPsE5zt+p3Z/mrVzhdNSI51/nVM=";
};
patches = [
(fetchpatch {
url = "https://github.com/pydantic/pytest-examples/commit/551ba911713c2859caabc91b664723dd6bc800c5.patch";
hash = "sha256-Y3OU4fNyLADhBQGwX2jY0gagVV2q2dcn3kJRLUyCtZI=";
})
(fetchpatch {
url = "https://github.com/pydantic/pytest-examples/commit/3bef5d644fe3fdb076270833768e4c6df9148530.patch";
hash = "sha256-pf+WKzZNqgjbJiblMMLHWk23kjg4W9nm+KBmC8rG8Lw=";
})
];
postPatch = ''
# ruff binary is used directly, the ruff Python package is not needed
substituteInPlace pytest_examples/lint.py \