https://gitlab.gnome.org/GNOME/pyatspi2/-/compare/PYATSPI_2_46_1...2.58.0 Was ported to Meson. Also clean up, and fix license: - Library is LGPL-2.0-only. - Examples are LGPL-2.1-or-later. - Some tests are LGPL-2.0-or-later, some are GPL-2.0-or-later, and some are PSF-2.0. Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
54 lines
1000 B
Nix
54 lines
1000 B
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
buildPythonPackage,
|
|
isPy3k,
|
|
at-spi2-core,
|
|
pygobject3,
|
|
gnome,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyatspi";
|
|
version = "2.58.0";
|
|
|
|
pyproject = false;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/pyatspi/${lib.versions.majorMinor version}/pyatspi-${version}.tar.xz";
|
|
sha256 = "6dKQ1TzH4wZtly/RilDuiF77i+CqJSYvGe9/iE/qDv8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
at-spi2-core
|
|
pygobject3
|
|
];
|
|
|
|
disabled = !isPy3k;
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = "pyatspi";
|
|
attrPath = "python3.pkgs.pyatspi";
|
|
versionPolicy = "odd-unstable";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Python client bindings for D-Bus AT-SPI";
|
|
homepage = "https://gitlab.gnome.org/GNOME/pyatspi2";
|
|
license = licenses.lgpl2Only;
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|