51 lines
955 B
Nix
Raw Permalink Normal View History

2021-03-14 18:32:55 +01:00
{ lib
, fetchFromGitLab
, meson
, ninja
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "gi-docgen";
2021-05-14 01:32:12 +02:00
version = "2021.5";
2021-03-14 18:32:55 +01:00
format = "other";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
2021-05-14 01:32:12 +02:00
owner = "GNOME";
2021-03-14 18:32:55 +01:00
repo = pname;
rev = version;
2021-05-14 01:32:12 +02:00
sha256 = "1fz6r6mkp4fw1mn6gn9745wcdcqg7696bbwvdcnmhinlhrcnaiz6";
2021-03-14 18:32:55 +01:00
};
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";
2021-05-14 01:32:12 +02:00
homepage = "https://gitlab.gnome.org/GNOME/gi-docgen";
2021-03-14 18:32:55 +01:00
license = licenses.asl20; # OR GPL-3.0-or-later
maintainers = teams.gnome.members;
};
}