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