python310Packages.pyatspi: fix cross

python3.10-pyatspi> checking for a Python interpreter with version >= 2.6... none
python3.10-pyatspi> configure: error: no suitable Python interpreter found

then after PYTHON=

python3.10-pyatspi> ./configure: line 3939: which: command not found
This commit is contained in:
Artturin 2022-08-13 21:03:34 +03:00
parent 9f7c464ec3
commit c1896ff065

View file

@ -1,4 +1,4 @@
{ lib, fetchurl, pkg-config, buildPythonPackage, isPy3k, at-spi2-core, pygobject3, gnome }:
{ lib, fetchurl, pkg-config, buildPythonPackage, isPy3k, at-spi2-core, pygobject3, gnome, python }:
buildPythonPackage rec {
pname = "pyatspi";
@ -17,6 +17,16 @@ buildPythonPackage rec {
pygobject3
];
configureFlags = [
"PYTHON=${python.pythonForBuild.interpreter}"
];
postPatch = ''
# useless python existence check for us
substituteInPlace configure \
--replace '&& ! which' '&& false'
'';
disabled = !isPy3k;
passthru = {