nixpkgs/pkgs/development/python-modules/pyatspi/default.nix

38 lines
952 B
Nix
Raw Normal View History

{ lib, fetchurl, pkg-config, buildPythonPackage, isPy3k, at-spi2-core, pygobject3, gnome }:
2015-08-13 22:36:27 +01:00
buildPythonPackage rec {
pname = "pyatspi";
version = "2.38.1";
format = "other";
2015-08-13 22:36:27 +01:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0lc1p6p296c9q3lffi03v902jlsj34i7yyl3rcyaq94wwbljg7z4";
2015-08-13 22:36:27 +01:00
};
nativeBuildInputs = [ pkg-config ];
2015-08-13 22:36:27 +01:00
buildInputs = [
at-spi2-core
pygobject3
2015-08-13 22:36:27 +01:00
];
disabled = !isPy3k;
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
attrPath = "python3.pkgs.${pname}";
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
description = "Python client bindings for D-Bus AT-SPI";
homepage = "https://wiki.linuxfoundation.org/accessibility/d-bus";
2015-08-13 22:36:27 +01:00
license = licenses.gpl2;
maintainers = with maintainers; [ jtojnar ];
platforms = with platforms; unix;
2015-08-13 22:36:27 +01:00
};
}