python3Packages.pytest-flake8: drop deprecated py.path.local hook arg (#518628)

This commit is contained in:
Michael Daniels
2026-05-16 18:52:43 +00:00
committed by GitHub
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
setuptools-scm,
flake8,
pytestCheckHook,
@@ -19,6 +20,14 @@ buildPythonPackage rec {
hash = "sha256-uc5DOqqdoLfhzI2ogDOqhbJOHzdu+uqSOojIH+S1LZI=";
};
patches = [
# Drop deprecated `path` arg from pytest_collect_file hook. (https://github.com/coherent-oss/pytest-flake8/issues/5)
(fetchpatch2 {
url = "https://raw.githubusercontent.com/OpenIndiana/oi-userland/0d06abedf17256d1f2c89086acc05cfa53dbc647/components/python/pytest-flake8/patches/02-deprecated-path.patch";
hash = "sha256-mHGRKaMmDTJdj6ajWS0Dts1ZTbT1bNLMjOOZAP156Jg=";
})
];
build-system = [ setuptools-scm ];
dependencies = [ flake8 ];