diff --git a/pkgs/by-name/ze/zeyple/package.nix b/pkgs/by-name/ze/zeyple/package.nix index 7e72eae1652e..943cf8dc9c10 100644 --- a/pkgs/by-name/ze/zeyple/package.nix +++ b/pkgs/by-name/ze/zeyple/package.nix @@ -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 '';