Merge pull request #293285 from funkeleinhorn/fix-pytest-examples

This commit is contained in:
Sandro 2024-03-11 16:10:57 +01:00 committed by GitHub
commit 86e1192133
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 \