depot/third_party/nixpkgs/pkgs/development/python-modules/pyatspi/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

55 lines
1.2 KiB
Nix

{
lib,
fetchurl,
pkg-config,
buildPythonPackage,
isPy3k,
at-spi2-core,
pygobject3,
gnome,
python,
}:
buildPythonPackage rec {
pname = "pyatspi";
version = "2.46.1";
format = "other";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "+R9qV0NOnAfRPVxL+BndeOjuYFqsKuRdjGTCgRT7BBs=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
at-spi2-core
pygobject3
];
configureFlags = [ "PYTHON=${python.pythonOnBuildForHost.interpreter}" ];
postPatch = ''
# useless python existence check for us
substituteInPlace configure \
--replace '&& ! which' '&& false'
'';
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";
license = licenses.gpl2;
maintainers = with maintainers; [ jtojnar ];
platforms = with platforms; unix;
};
}