python310Packages.pytest-golden: use poetry-core

This commit is contained in:
Robert Schütz 2022-11-28 19:22:04 -08:00 committed by Robert Schütz
parent 3e99f31265
commit 22ccf277fc

View file

@ -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
];