diff --git a/pkgs/development/python-modules/pytest-bdd/default.nix b/pkgs/development/python-modules/pytest-bdd/default.nix index 7908a04fa40f..b5b558a0faf5 100644 --- a/pkgs/development/python-modules/pytest-bdd/default.nix +++ b/pkgs/development/python-modules/pytest-bdd/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, fetchpatch , mako , parse , parse-type @@ -8,7 +9,6 @@ , pytest , pytestCheckHook , pythonOlder -, setuptools , typing-extensions }: @@ -26,6 +26,14 @@ buildPythonPackage rec { hash = "sha256-+76jIgfDQPdIoesTr1+QUu8wmOnrdf4KT+TJr9F2Hqk="; }; + patches = [ + (fetchpatch { + name = "remove-setuptools.patch"; + url = "https://github.com/pytest-dev/pytest-bdd/commit/5d8eda3a30b47d3bd27849884a851adafca765cb.patch"; + hash = "sha256-G2WHaRKlQ9HINufh8wl7+ly7HfDGobMLzzlbwDwd+o8="; + }) + ]; + nativeBuildInputs = [ poetry-core ]; @@ -43,7 +51,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook - setuptools ]; preCheck = ''