6064764516
GitOrigin-RevId: 2cf9db0e3d45b9d00f16f2836cb1297bcadc475e
50 lines
947 B
Nix
50 lines
947 B
Nix
{ lib
|
|
, fetchFromGitLab
|
|
, meson
|
|
, ninja
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "gi-docgen";
|
|
version = "2021.7";
|
|
|
|
format = "other";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "GNOME";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "i2s4JXg+D9sYq1QwVcDRLIr9qnRmzHC+cBInHv4SXHI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
];
|
|
|
|
pythonPath = with python3.pkgs; [
|
|
jinja2
|
|
markdown
|
|
markupsafe
|
|
pygments
|
|
toml
|
|
typogrify
|
|
];
|
|
|
|
doCheck = false; # no tests
|
|
|
|
postFixup = ''
|
|
# Do not propagate Python
|
|
substituteInPlace $out/nix-support/propagated-build-inputs \
|
|
--replace "${python3}" ""
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Documentation generator for GObject-based libraries";
|
|
homepage = "https://gitlab.gnome.org/GNOME/gi-docgen";
|
|
license = licenses.asl20; # OR GPL-3.0-or-later
|
|
maintainers = teams.gnome.members;
|
|
};
|
|
}
|