From 22ccf277fc8d60ef8aaec7e952ba54779072835c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 28 Nov 2022 19:22:04 -0800 Subject: [PATCH] python310Packages.pytest-golden: use poetry-core --- .../python-modules/pytest-golden/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-golden/default.nix b/pkgs/development/python-modules/pytest-golden/default.nix index d6fd3fe5d2d0..9d1ba62df41d 100644 --- a/pkgs/development/python-modules/pytest-golden/default.nix +++ b/pkgs/development/python-modules/pytest-golden/default.nix @@ -4,7 +4,7 @@ , fetchFromGitHub #, hatchling , ruamel-yaml -, poetry +, poetry-core , pytest , pytest-asyncio , pytestCheckHook @@ -27,13 +27,19 @@ buildPythonPackage rec { hash = "sha256-l5fXWDK6gWJc3dkYFTokI9tWvawMRnF0td/lSwqkYXE="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "poetry>=0.12" poetry-core \ + --replace poetry.masonry.api poetry.core.masonry.api + ''; + pythonRelaxDeps = [ "testfixtures" ]; nativeBuildInputs = [ # hatchling used for > 0.2.2 - poetry + poetry-core pythonRelaxDepsHook ];