Skip to content

Commit e4bf30f

Browse files
authored
python313Packages.gpgme: fix build (NixOS#371188)
2 parents 45e7b04 + 77b2788 commit e4bf30f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/development/python-modules/gpgme/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
autoreconfHook,
23
buildPythonPackage,
34
gpgme,
45
lib,
@@ -17,7 +18,8 @@ buildPythonPackage {
1718

1819
postPatch = ''
1920
substituteInPlace lang/python/setup.py.in \
20-
--replace-fail "gpgme_h = '''" "gpgme_h = '${lib.getDev gpgme}/include/gpgme.h'"
21+
--replace-fail "gpgme_h = '''" "gpgme_h = '${lib.getDev gpgme}/include/gpgme.h'" \
22+
--replace-fail "@VERSION@" "${gpgme.version}"
2123
'';
2224

2325
configureFlags = gpgme.configureFlags ++ [
@@ -35,6 +37,7 @@ buildPythonPackage {
3537
build-system = [ setuptools ];
3638

3739
nativeBuildInputs = [
40+
autoreconfHook
3841
swig
3942
];
4043

0 commit comments

Comments
 (0)