pwdsphinx: 2.0.3 -> 2.0.4 (#497312)

This commit is contained in:
Weijia Wang
2026-03-11 17:26:16 +00:00
committed by GitHub
+6 -3
View File
@@ -9,14 +9,14 @@
python3Packages.buildPythonApplication (finalAttrs: {
pname = "pwdsphinx";
version = "2.0.3";
version = "2.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "stef";
repo = "pwdsphinx";
tag = "v${finalAttrs.version}";
hash = "sha256-COSfA5QqIGWEnahmo5klFECK7XjyabGs1nG9vyhj/DM=";
hash = "sha256-wAvcXSAoaottnsnvlD2QnLP3QIithI6xplo5tN8yjVg=";
};
postPatch = ''
@@ -55,7 +55,10 @@ python3Packages.buildPythonApplication (finalAttrs: {
preCheck = ''
mkdir -p ~/.config/sphinx
cp ${finalAttrs.src}/configs/config ~/.config/sphinx/config
cp ${finalAttrs.src}/sphinx.cfg_sample ~/.config/sphinx/config
substituteInPlace ~/.config/sphinx/config \
--replace-fail 'pinentry=/usr/bin/pinentry' 'pinentry="/usr/bin/pinentry"' \
--replace-fail 'log=' 'log=""'
# command fails without key but the command generates the key, so always pass
$out/bin/sphinx init || true
'';