2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, colorama
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pyproject-metadata
|
|
|
|
, tomli
|
2023-01-20 10:41:00 +00:00
|
|
|
, typing-extensions
|
|
|
|
, pythonOlder
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "meson-python";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.15.0";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "meson_python";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-/dtz7s1J6JwcQch5N82JwtC2WhxjuigjhoHUvZSE0m8=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pyproject-metadata
|
|
|
|
tomli
|
2023-01-20 10:41:00 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.10") [
|
|
|
|
typing-extensions
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pyproject-metadata
|
|
|
|
tomli
|
2023-01-20 10:41:00 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.10") [
|
|
|
|
typing-extensions
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
2023-08-10 07:59:29 +00:00
|
|
|
setupHooks = [
|
|
|
|
./add-build-flags.sh
|
|
|
|
];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
meta = {
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/mesonbuild/meson-python/blob/${version}/CHANGELOG.rst";
|
2022-09-30 11:47:45 +00:00
|
|
|
description = "Meson Python build backend (PEP 517)";
|
2023-01-20 10:41:00 +00:00
|
|
|
homepage = "https://github.com/mesonbuild/meson-python";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = [ lib.licenses.mit ];
|
|
|
|
maintainers = [ lib.maintainers.fridh ];
|
|
|
|
};
|
|
|
|
}
|