2019-05-18 21:19:31 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkgconfig
|
|
|
|
, gnome3
|
|
|
|
, gtk3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gobject-introspection
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, python3
|
|
|
|
, at-spi2-core
|
|
|
|
, dbus
|
|
|
|
, gettext
|
|
|
|
, libwnck3
|
|
|
|
, adwaita-icon-theme
|
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2019-05-18 21:19:31 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-02-21 01:57:59 +00:00
|
|
|
name = "accerciser-${version}";
|
2019-10-07 05:51:24 +00:00
|
|
|
version = "3.34.1";
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2019-05-18 21:19:31 +00:00
|
|
|
format = "other";
|
|
|
|
|
2018-02-21 01:57:59 +00:00
|
|
|
src = fetchurl {
|
2018-10-05 00:12:11 +00:00
|
|
|
url = "mirror://gnome/sources/accerciser/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-10-07 05:51:24 +00:00
|
|
|
sha256 = "1awf7fcm52r23s51gllyybhywf2kljqkaw4znblajph9sawnfs3l";
|
2018-02-21 01:57:59 +00:00
|
|
|
};
|
|
|
|
|
2018-03-21 09:57:15 +00:00
|
|
|
nativeBuildInputs = [
|
2019-05-18 21:19:31 +00:00
|
|
|
gettext
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection # For setup hook
|
2019-05-18 21:19:31 +00:00
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
pkgconfig
|
|
|
|
dbus
|
|
|
|
wrapGAppsHook
|
2018-03-21 09:57:15 +00:00
|
|
|
];
|
2019-05-18 21:19:31 +00:00
|
|
|
|
2016-09-18 19:35:23 +00:00
|
|
|
buildInputs = [
|
2019-05-18 21:19:31 +00:00
|
|
|
adwaita-icon-theme
|
|
|
|
at-spi2-core
|
|
|
|
gtk3
|
|
|
|
libwnck3
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
ipython
|
|
|
|
pyatspi
|
|
|
|
pycairo
|
|
|
|
pygobject3
|
|
|
|
xlib
|
2016-09-18 19:35:23 +00:00
|
|
|
];
|
|
|
|
|
2019-05-18 21:19:31 +00:00
|
|
|
# Strict deps breaks accerciser
|
|
|
|
# and https://github.com/NixOS/nixpkgs/issues/56943
|
|
|
|
strictDeps = false;
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-02-21 01:57:59 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "accerciser";
|
|
|
|
attrPath = "gnome3.accerciser";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 19:35:23 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Accerciser;
|
|
|
|
description = "Interactive Python accessibility explorer";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|