biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / meson-python / default.nix
blob33cc35411bc098ca8ba751fb6251efea6267acbb
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   meson,
6   ninja,
7   pyproject-metadata,
8   tomli,
9   typing-extensions,
10   pythonOlder,
13 buildPythonPackage rec {
14   pname = "meson-python";
15   version = "0.16.0";
16   format = "pyproject";
18   src = fetchPypi {
19     inherit version;
20     pname = "meson_python";
21     hash = "sha256-kGjBfjbInWx/9wn/+yqKmSXozQsCYpco5c6vLsUFy18=";
22   };
24   nativeBuildInputs = [
25     meson
26     ninja
27     pyproject-metadata
28     tomli
29   ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ];
31   propagatedBuildInputs = [
32     meson
33     ninja
34     pyproject-metadata
35     tomli
36   ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ];
37   setupHooks = [ ./add-build-flags.sh ];
39   meta = {
40     changelog = "https://github.com/mesonbuild/meson-python/blob/${version}/CHANGELOG.rst";
41     description = "Meson Python build backend (PEP 517)";
42     homepage = "https://github.com/mesonbuild/meson-python";
43     license = [ lib.licenses.mit ];
44     maintainers = with lib.maintainers; [ doronbehar ];
45   };