From 4a6768d4f9cb49cce78dca5f73ddfff04969d982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 6 Jan 2025 06:41:49 -0800 Subject: [PATCH] poetryPlugins.poetry-plugin-export: run tests --- .../poetry/plugins/poetry-plugin-export.nix | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/po/poetry/plugins/poetry-plugin-export.nix b/pkgs/by-name/po/poetry/plugins/poetry-plugin-export.nix index e9539ccfaf53..d523af4b4808 100644 --- a/pkgs/by-name/po/poetry/plugins/poetry-plugin-export.nix +++ b/pkgs/by-name/po/poetry/plugins/poetry-plugin-export.nix @@ -2,7 +2,11 @@ lib, buildPythonPackage, fetchFromGitHub, + poetry, poetry-core, + pytest-mock, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,17 +21,19 @@ buildPythonPackage rec { hash = "sha256-ZXhj9FwCCNFMzyoAtQTD8bddOvVM4KzNtd+3sBn9i+w="; }; - postPatch = '' - sed -i '/poetry =/d' pyproject.toml - ''; - - nativeBuildInputs = [ + build-system = [ poetry-core ]; - # infinite recursion with poetry - doCheck = false; - pythonImportsCheck = [ ]; + buildInputs = [ + poetry + ]; + + nativeCheckInputs = [ + pytest-mock + pytest-xdist + pytestCheckHook + ]; meta = with lib; { changelog = "https://github.com/python-poetry/poetry-plugin-export/blob/${src.rev}/CHANGELOG.md";