at master 1.2 kB view raw
1{ 2 lib, 3 fetchurl, 4 pkg-config, 5 buildPythonPackage, 6 isPy3k, 7 at-spi2-core, 8 pygobject3, 9 gnome, 10 python, 11}: 12 13buildPythonPackage rec { 14 pname = "pyatspi"; 15 version = "2.46.1"; 16 format = "other"; 17 18 src = fetchurl { 19 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 20 sha256 = "+R9qV0NOnAfRPVxL+BndeOjuYFqsKuRdjGTCgRT7BBs="; 21 }; 22 23 nativeBuildInputs = [ pkg-config ]; 24 25 buildInputs = [ 26 at-spi2-core 27 pygobject3 28 ]; 29 30 configureFlags = [ "PYTHON=${python.pythonOnBuildForHost.interpreter}" ]; 31 32 postPatch = '' 33 # useless python existence check for us 34 substituteInPlace configure \ 35 --replace '&& ! which' '&& false' 36 ''; 37 38 disabled = !isPy3k; 39 40 passthru = { 41 updateScript = gnome.updateScript { 42 packageName = pname; 43 attrPath = "python3.pkgs.${pname}"; 44 versionPolicy = "odd-unstable"; 45 }; 46 }; 47 48 meta = with lib; { 49 description = "Python client bindings for D-Bus AT-SPI"; 50 homepage = "https://wiki.linuxfoundation.org/accessibility/d-bus"; 51 license = licenses.gpl2; 52 maintainers = with maintainers; [ jtojnar ]; 53 platforms = with platforms; unix; 54 }; 55}