From ddc48afccaa340d4a166fd2e5e183a4fd7185e24 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 24 Apr 2018 21:39:33 +0200 Subject: [PATCH] =?UTF-8?q?python3.pkgs.pyatspi:=202.18.0=20=E2=86=92=202.?= =?UTF-8?q?26.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../python-modules/pyatspi/default.nix | 32 +++++++++++-------- pkgs/top-level/python-packages.nix | 2 +- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/pyatspi/default.nix b/pkgs/development/python-modules/pyatspi/default.nix index 6192f94445f..5960551abc7 100644 --- a/pkgs/development/python-modules/pyatspi/default.nix +++ b/pkgs/development/python-modules/pyatspi/default.nix @@ -1,29 +1,35 @@ -{ stdenv, fetchurl, pkgconfig, at-spi2-core, pythonPackages }: +{ stdenv, fetchurl, pkgconfig, buildPythonPackage, isPy3k, at-spi2-core, pygobject3, gnome3 }: -stdenv.mkDerivation rec { +buildPythonPackage rec { pname = "pyatspi"; - version = "2.18.0"; - name = "${pname}-${version}"; + version = "2.26.0"; + format = "other"; src = fetchurl { - url = "mirror://gnome/sources/pyatspi/2.18/${name}.tar.xz"; - sha256 = "0imbyk2v6c11da7pkwz91313pkkldxs8zfg81zb2ql6h0nnh6vzq"; + url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "0xdnix7gxzgf75xy9ris4dd6b05mqwicw190b98xqmypydyf95n6"; }; - broken = true; - buildInputs = [ at-spi2-core pkgconfig - pythonPackages.python - pythonPackages.pygobject3 + pygobject3 ]; + disabled = !isPy3k; + + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + attrPath = "python3.pkgs.${pname}"; + }; + }; + meta = with stdenv.lib; { - description = "Python 3 bindings for at-spi"; - homepage = http://www.linuxfoundation.org/en/AT-SPI_on_D-Bus; + description = "Python client bindings for D-Bus AT-SPI"; + homepage = https://wiki.linuxfoundation.org/accessibility/d-bus; license = licenses.gpl2; - maintainers = with maintainers; [ jgeerds ]; + maintainers = with maintainers; [ jgeerds jtojnar ]; platforms = with platforms; unix; }; } diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 127e4ac9c0e..86c5e882ab2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -315,7 +315,7 @@ in { inherit (pkgs) arrow-cpp cmake pkgconfig; }; - pyatspi = disabledIf (!isPy3k) (callPackage ../development/python-modules/pyatspi { }); + pyatspi = callPackage ../development/python-modules/pyatspi { }; pyaxmlparser = callPackage ../development/python-modules/pyaxmlparser { };