python3Packages.aggdraw: fix build with clang 16

Clang 16 defaults to C++17, which disallows the `register` storage class
specifier. Upstream has fixed this on a maintenance branch, but it is
not yet available in a release.
This commit is contained in:
Randy Eckenrode
2023-11-10 09:27:32 -05:00
parent 58f06c41b5
commit 3e7992ba67
@@ -1,5 +1,6 @@
{ lib
, fetchFromGitHub
, fetchpatch
, buildPythonPackage
, packaging
, setuptools
@@ -23,6 +24,14 @@ buildPythonPackage rec {
hash = "sha256-2yajhuRyQ7BqghbSgPClW3inpw4TW2DhgQbomcRFx94=";
};
patches = [
# Removes `register` storage class specifier, which is not allowed in C++17.
(fetchpatch {
url = "https://github.com/pytroll/aggdraw/commit/157ed49803567e8c3eeb7dfeff4c116db35747f7.patch";
hash = "sha256-QSzpO90u5oSBWUzehRFbXgZ1ApEfLlfp11MUx6w11aI=";
})
];
nativeBuildInputs = [
packaging
setuptools