nixpkgs/pkgs/by-name/ac/accerciser/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

82 lines
1.5 KiB
Nix

{
lib,
fetchurl,
desktop-file-utils,
meson,
ninja,
pkg-config,
gnome,
gtk3,
wrapGAppsHook3,
gobject-introspection,
itstool,
python3,
at-spi2-core,
gettext,
libwnck,
librsvg,
}:
python3.pkgs.buildPythonApplication rec {
pname = "accerciser";
version = "3.44.1";
format = "other";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
hash = "sha256-tJz7DTIY+/Vf+kPH96N9a4URn+2VahBjCYBO2+mDkAM=";
};
nativeBuildInputs = [
desktop-file-utils
gettext
gobject-introspection # For setup hook
itstool
meson
ninja
pkg-config
wrapGAppsHook3
];
buildInputs = [
at-spi2-core
gtk3
libwnck
librsvg
];
propagatedBuildInputs = with python3.pkgs; [
dbus-python
ipython
pyatspi
pycairo
pygobject3
pyxdg
setuptools # for pkg_resources
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "accerciser";
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/accerciser";
changelog = "https://gitlab.gnome.org/GNOME/accerciser/-/blob/${version}/NEWS?ref_type=tags";
description = "Interactive Python accessibility explorer";
mainProgram = "accerciser";
maintainers = teams.gnome.members;
license = licenses.bsd3;
platforms = platforms.linux;
};
}