diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pyatspi')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pyatspi/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pyatspi/default.nix b/nixpkgs/pkgs/development/python-modules/pyatspi/default.nix new file mode 100644 index 00000000000..b704e54321b --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pyatspi/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchurl, pkgconfig, buildPythonPackage, isPy3k, at-spi2-core, pygobject3, gnome3 }: + +buildPythonPackage rec { + pname = "pyatspi"; + version = "2.36.0"; + format = "other"; + + src = fetchurl { + url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "UTbBv5GeEB1OyQGiduhupg5Ygaj/d2PjVvGYQOX/4d0="; + }; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ + at-spi2-core + pygobject3 + ]; + + disabled = !isPy3k; + + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + attrPath = "python3.pkgs.${pname}"; + }; + }; + + meta = with stdenv.lib; { + description = "Python client bindings for D-Bus AT-SPI"; + homepage = "https://wiki.linuxfoundation.org/accessibility/d-bus"; + license = licenses.gpl2; + maintainers = with maintainers; [ jtojnar ]; + platforms = with platforms; unix; + }; +} |