From 02d780efe51573aaf65eecdd846996a01aa96f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 27 Nov 2022 19:20:28 -0800 Subject: [PATCH] python310Packages.devpi-common: don't depend on pytest-flake8 --- .../python-modules/devpi-common/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/devpi-common/default.nix b/pkgs/development/python-modules/devpi-common/default.nix index bb1aae2e8e50..21bb275918dd 100644 --- a/pkgs/development/python-modules/devpi-common/default.nix +++ b/pkgs/development/python-modules/devpi-common/default.nix @@ -1,8 +1,7 @@ { lib, buildPythonPackage, fetchPypi , requests , py -, pytest -, pytest-flake8 +, pytestCheckHook , lazy }: @@ -15,16 +14,20 @@ buildPythonPackage rec { sha256 = "sha256-O015TOlvFcN7hxwV4SgGmo6vanMuWb+i9KZOYhYZLJM="; }; + postPatch = '' + substituteInPlace tox.ini \ + --replace "--flake8" "" + ''; + propagatedBuildInputs = [ requests py lazy ]; - checkInputs = [ pytest pytest-flake8 ]; - checkPhase = '' - py.test - ''; + checkInputs = [ + pytestCheckHook + ]; meta = with lib; { homepage = "https://github.com/devpi/devpi";