Merge pull request #293285 from funkeleinhorn/fix-pytest-examples
This commit is contained in:
commit
86e1192133
1 changed files with 12 additions and 0 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue