Skip to content

Commit

Permalink
python3.pkgs.meson-python: depend on top-level ninja
Browse files Browse the repository at this point in the history
This is a build tool that depends on a ninja binary directly, not
through the ninja PyPI package.
  • Loading branch information
tjni committed Aug 4, 2023
1 parent a586a9e commit 39dd3d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 0 additions & 7 deletions pkgs/development/python-modules/meson-python/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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)";
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };

Expand Down

0 comments on commit 39dd3d1

Please sign in to comment.