From a93647c8bef08dd94fcc854c3cfea79943cbaa33 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sun, 10 May 2026 16:18:14 +0700 Subject: [PATCH] python3Packages.pytest-flake8: drop deprecated py.path.local hook arg --- .../development/python-modules/pytest-flake8/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/pytest-flake8/default.nix b/pkgs/development/python-modules/pytest-flake8/default.nix index 9eb469bd84e8..82239cf430fc 100644 --- a/pkgs/development/python-modules/pytest-flake8/default.nix +++ b/pkgs/development/python-modules/pytest-flake8/default.nix @@ -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 ];