From 829cbcbcc6c9dd2334470c52cf5747425b5d5541 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Mon, 31 Jul 2023 13:10:09 -0700 Subject: python3.pkgs.mesonpep517: add build dependencies and fix metadata --- pkgs/development/python-modules/mesonpep517/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'pkgs/development') diff --git a/pkgs/development/python-modules/mesonpep517/default.nix b/pkgs/development/python-modules/mesonpep517/default.nix index 2c0ba17567980..58ddc57bfe7eb 100644 --- a/pkgs/development/python-modules/mesonpep517/default.nix +++ b/pkgs/development/python-modules/mesonpep517/default.nix @@ -5,6 +5,7 @@ , ninja , setuptools , toml +, wheel }: # TODO: offer meson as a Python package so we have dist-info folder. @@ -19,19 +20,21 @@ buildPythonPackage rec { hash = "sha256-Fyo7JfLqHJqbahEjVDt/0xJxOfVLqLn3xNJ4lSB7KIw="; }; + # Applies the following merge request, which doesn't apply cleanly: + # https://gitlab.com/thiblahute/mesonpep517/-/merge_requests/25 + # + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'backend-path = "."' 'backend-path = ["."]' + ''; + nativeBuildInputs = [ setuptools + wheel ]; propagatedBuildInputs = [ toml ]; - # postPatch = '' - # # Meson tries to detect ninja as well, so we should patch meson as well. - # substituteInPlace mesonpep517/buildapi.py \ - # --replace "'meson'" "'${meson}/bin/meson'" \ - # --replace "'ninja'" "'${ninja}/bin/ninja'" - # ''; - propagatedNativeBuildInputs = [ meson ninja ]; meta = { -- cgit 1.4.1