python3.pkgs.meson-python: depend on top-level ninja

This is a build tool that depends on a ninja binary directly, not
through the ninja PyPI package.
This commit is contained in:
Theodore Ni 2023-08-03 22:12:05 -07:00
parent a586a9e55f
commit 39dd3d18bc
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474
2 changed files with 3 additions and 8 deletions

View file

@ -43,13 +43,6 @@ buildPythonPackage rec {
./add-build-flags.sh
];
# Ugly work-around. Drop ninja dependency.
# We already have ninja, but it comes without METADATA.
# Building ninja-python-distributions is the way to go.
postPatch = ''
substituteInPlace pyproject.toml --replace "'ninja'," ""
'';
meta = {
changelog = "https://github.com/mesonbuild/meson-python/blob/${version}/CHANGELOG.rst";
description = "Meson Python build backend (PEP 517)";

View file

@ -6442,7 +6442,9 @@ self: super: with self; {
mesonpep517 = callPackage ../development/python-modules/mesonpep517 { };
meson-python = callPackage ../development/python-modules/meson-python { };
meson-python = callPackage ../development/python-modules/meson-python {
inherit (pkgs) ninja;
};
messagebird = callPackage ../development/python-modules/messagebird { };