python3.pkgs.pydicom-seg: replace poetry with poetry-core

This commit is contained in:
Theodore Ni 2023-08-22 23:09:32 -07:00
parent 75e94e346b
commit 7dee41dea4
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pythonOlder
, pytestCheckHook
, pythonRelaxDepsHook
@ -26,10 +27,14 @@ buildPythonPackage rec {
fetchSubmodules = true;
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "poetry.masonry.api" "poetry.core.masonry.api"
'';
patches = [
# https://github.com/razorx89/pydicom-seg/pull/54
(fetchpatch {
name = "replace-poetry-with-poetry-core.patch";
url = "https://github.com/razorx89/pydicom-seg/commit/ac91eaefe3b0aecfe745869972c08de5350d2b61.patch";
hash = "sha256-xBOVjWZPjyQ8gSj6JLe9B531e11TI3FUFFtL+IelZOM=";
})
];
pythonRelaxDeps = [
"jsonschema"