poetryPlugins.poetry-plugin-export: run tests

This commit is contained in:
Robert Schütz
2025-01-06 07:02:26 -08:00
parent da16b33bc9
commit 4a6768d4f9
@@ -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";