zeyple: patch renamed python stdlib feature

This commit is contained in:
h7x4
2025-10-18 03:43:23 +09:00
parent 0f58a0e06d
commit dc7922ec76
+7 -1
View File
@@ -17,11 +17,17 @@ python3Packages.buildPythonApplication {
sha256 = "0r2d1drg2zvwmn3zg0qb32i9mh03r5di9q1yszx23r32rsax9mxh";
};
# SafeConfigParser was deprecated in Python 3.12: https://github.com/infertux/zeyple/issues/76
postPatch = ''
substituteInPlace zeyple/zeyple.py \
--replace-fail 'from configparser import SafeConfigParser' 'from configparser import ConfigParser as SafeConfigParser'
'';
propagatedBuildInputs = [ python3Packages.gpgme ];
installPhase = ''
runHook preInstall
install -Dm755 $src/zeyple/zeyple.py $out/bin/zeyple
install -Dm755 zeyple/zeyple.py $out/bin/zeyple
runHook postInstall
'';