nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 38 lines 938 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, meson 5, ninja 6, toml 7}: 8 9# TODO: offer meson as a Python package so we have dist-info folder. 10 11buildPythonPackage rec { 12 pname = "mesonpep517"; 13 version = "0.2"; 14 format = "pyproject"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-Fyo7JfLqHJqbahEjVDt/0xJxOfVLqLn3xNJ4lSB7KIw="; 19 }; 20 21 propagatedBuildInputs = [ toml ]; 22 23 # postPatch = '' 24 # # Meson tries to detect ninja as well, so we should patch meson as well. 25 # substituteInPlace mesonpep517/buildapi.py \ 26 # --replace "'meson'" "'${meson}/bin/meson'" \ 27 # --replace "'ninja'" "'${ninja}/bin/ninja'" 28 # ''; 29 30 propagatedNativeBuildInputs = [ meson ninja ]; 31 32 meta = { 33 description = "Create pep517 compliant packages from the meson build system"; 34 homepage = "https://gitlab.com/thiblahute/mesonpep517"; 35 license = lib.licenses.asl20; 36 maintainers = [ lib.maintainers.fridh ]; 37 }; 38}