Merge pull request #251739 from tjni/vega

python310Packages.vega: fully switch to poetry-core
This commit is contained in:
OTABI Tomoya
2023-08-27 19:25:34 +09:00
committed by GitHub
@@ -1,5 +1,6 @@
{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, pythonOlder
, pythonRelaxDepsHook
@@ -26,10 +27,14 @@ buildPythonPackage rec {
hash = "sha256-v1/8taHdN1n9+gy7L+g/wAJ2x9FwYCaxZiEdFqLct1Y=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "poetry.masonry.api" "poetry.core.masonry.api"
'';
patches = [
# https://github.com/vega/ipyvega/pull/507
(fetchpatch {
name = "replace-poetry-with-poetry-core.patch";
url = "https://github.com/vega/ipyvega/commit/1a5028ee5d54e24b9650b66685f54c42b72c7899.patch";
hash = "sha256-W8UmMit7DJGKCM9+/OSRLTuRvC0ZR42AP/b/frVEvsk=";
})
];
nativeBuildInputs = [
poetry-core