2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
2022-12-17 10:02:37 +00:00
|
|
|
, fetchurl
|
2021-04-05 15:23:46 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
2022-12-17 10:02:37 +00:00
|
|
|
, gnome
|
2021-04-05 15:23:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "gi-docgen";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2023.3";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gi-docgen/${lib.versions.major version}/gi-docgen-${version}.tar.xz";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-TesfCXc/cGJZrGUgUNp7PuWYcbw/1c+3foEdt0mNyOc=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
depsBuildBuild = [
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = with python3.pkgs; [
|
|
|
|
jinja2
|
|
|
|
markdown
|
|
|
|
markupsafe
|
2024-01-13 08:15:51 +00:00
|
|
|
packaging
|
2021-04-05 15:23:46 +00:00
|
|
|
pygments
|
2023-03-04 12:14:45 +00:00
|
|
|
toml # remove once python311 is the default
|
2021-04-05 15:23:46 +00:00
|
|
|
typogrify
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # no tests
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Do not propagate Python
|
|
|
|
substituteInPlace $out/nix-support/propagated-build-inputs \
|
|
|
|
--replace "${python3}" ""
|
|
|
|
'';
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
packageName = "gi-docgen";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Documentation generator for GObject-based libraries";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gi-docgen";
|
2021-05-28 09:39:13 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gi-docgen";
|
2021-04-05 15:23:46 +00:00
|
|
|
license = licenses.asl20; # OR GPL-3.0-or-later
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
}
|