python310Packages.vega: fully switch to poetry-core

This commit is contained in:
Theodore Ni 2023-08-27 01:57:59 -07:00
parent d78f502c6b
commit 5f6cd8487a
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

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