mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
7673d2be90
https://gitlab.gnome.org/GNOME/gi-docgen/-/compare/2022.2...2023.1 Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, python3
|
|
, gnome
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "gi-docgen";
|
|
version = "2023.1";
|
|
|
|
format = "other";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gi-docgen/${lib.versions.major version}/gi-docgen-${version}.tar.xz";
|
|
sha256 = "qaaHwbfEpBOaIUvUUeAcqGExoxYfaKo+BzJbBgArv7Y=";
|
|
};
|
|
|
|
depsBuildBuild = [
|
|
python3
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
];
|
|
|
|
pythonPath = with python3.pkgs; [
|
|
jinja2
|
|
markdown
|
|
markupsafe
|
|
pygments
|
|
toml # remove once python311 is the default
|
|
typogrify
|
|
];
|
|
|
|
doCheck = false; # no tests
|
|
|
|
postFixup = ''
|
|
# Do not propagate Python
|
|
substituteInPlace $out/nix-support/propagated-build-inputs \
|
|
--replace "${python3}" ""
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = "gi-docgen";
|
|
};
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|