1{ stdenv, fetchurl, pkgconfig, buildPythonPackage, isPy3k, at-spi2-core, pygobject3, gnome3 }:
2
3buildPythonPackage rec {
4 pname = "pyatspi";
5 version = "2.34.0";
6 format = "other";
7
8 src = fetchurl {
9 url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
10 sha256 = "0j3f75j0zd6ca8msg7yr19qsfirqkn9fk8pqbjnlhqrpri455g4p";
11 };
12
13 nativeBuildInputs = [ pkgconfig ];
14
15 buildInputs = [
16 at-spi2-core
17 pygobject3
18 ];
19
20 disabled = !isPy3k;
21
22 passthru = {
23 updateScript = gnome3.updateScript {
24 packageName = pname;
25 attrPath = "python3.pkgs.${pname}";
26 };
27 };
28
29 meta = with stdenv.lib; {
30 description = "Python client bindings for D-Bus AT-SPI";
31 homepage = https://wiki.linuxfoundation.org/accessibility/d-bus;
32 license = licenses.gpl2;
33 maintainers = with maintainers; [ jtojnar ];
34 platforms = with platforms; unix;
35 };
36}