@@ -1,29 +1,35 @@
1−{ stdenv, fetchurl, pkgconfig, at-spi2-core, pythonPackages }:
1+{ stdenv, fetchurl, pkgconfig, buildPythonPackage, isPy3k, at-spi2-core, pygobject3, gnome3 }:
22
3−stdenv.mkDerivation rec {
3+buildPythonPackage rec {
44 pname = "pyatspi";
5− version = "2.18.0";
6− name = "${pname}-${version}";
5+ version = "2.26.0";
6+ format = "other";
77
88 src = fetchurl {
9− url = "mirror://gnome/sources/pyatspi/2.18/${name}.tar.xz";
10− sha256 = "0imbyk2v6c11da7pkwz91313pkkldxs8zfg81zb2ql6h0nnh6vzq";
9+ url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
10+ sha256 = "0xdnix7gxzgf75xy9ris4dd6b05mqwicw190b98xqmypydyf95n6";
1111 };
1212
13− broken = true;
14−
1513 buildInputs = [
1614 at-spi2-core
1715 pkgconfig
18− pythonPackages.python
19− pythonPackages.pygobject3
16+ pygobject3
2017 ];
2118
19+ disabled = !isPy3k;
20+
21+ passthru = {
22+ updateScript = gnome3.updateScript {
23+ packageName = pname;
24+ attrPath = "python3.pkgs.${pname}";
25+ };
26+ };
27+
2228 meta = with stdenv.lib; {
23− description = "Python 3 bindings for at-spi";
24− homepage = http://www.linuxfoundation.org/en/AT-SPI_on_D-Bus;
29+ description = "Python client bindings for D-Bus AT-SPI";
30+ homepage = https://wiki.linuxfoundation.org/accessibility/d-bus;
2531 license = licenses.gpl2;
26− maintainers = with maintainers; [ jgeerds ];
32+ maintainers = with maintainers; [ jgeerds jtojnar ];
2733 platforms = with platforms; unix;
2834 };
2935}