python3Packages.sip: add patch fixing QGIS breakage

This commit is contained in:
Thomas Watson 2022-08-06 12:57:30 -05:00
parent 139d3f0e5d
commit 0ddcba0ae4

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchPypi, buildPythonPackage, packaging, ply, toml }:
{ lib, stdenv, fetchPypi, buildPythonPackage, packaging, ply, toml, fetchpatch }:
buildPythonPackage rec {
pname = "sip";
@ -15,6 +15,13 @@ buildPythonPackage rec {
# and PIP will refuse to install the resulting wheel.
# remove once upstream fixes this, hopefully in 6.5.2
./fix-manylinux-version.patch
# fix issue triggered by QGIS 3.26.x, already fixed upstream
# in SIP, waiting for release past 6.6.2
(fetchpatch {
url = "https://riverbankcomputing.com/hg/sip/raw-diff/323d39a2d602/sipbuild/generator/parser/instantiations.py";
hash = "sha256-QEQuRzXA+wK9Dt22U/LgIwtherY9pJURGJYpKpJkiok=";
})
];
propagatedBuildInputs = [ packaging ply toml ];