python3Packages.poetry-core: add setuptools to checkInputs

Was previously provided through buildPythonPackage, not anymore. Also
remove the intreehooks builder, because poetry-core relies on
backend-path to use itself to build itself.
This commit is contained in:
Martin Weinelt 2022-09-15 16:29:21 +02:00
parent f98d8fc610
commit 40b6a2232f

View file

@ -5,7 +5,6 @@
, build
, git
, importlib-metadata
, intreehooks
, pep517
, pytest-mock
, pytestCheckHook
@ -27,17 +26,6 @@ buildPythonPackage rec {
sha256 = "sha256-WUgBrO9h1E7N2SVFD47UPv39DMx1yQviV5tcNPmR+/g=";
};
postPatch = lib.optionalString (pythonOlder "3.8") ''
# remove >1.0.3
substituteInPlace pyproject.toml \
--replace 'importlib-metadata = {version = "^1.7.0", python = "~2.7 || >=3.5, <3.8"}' \
'importlib-metadata = {version = ">=1.7.0", python = "~2.7 || >=3.5, <3.8"}'
'';
nativeBuildInputs = [
intreehooks
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
importlib-metadata
];