Commit 6207ccfb authored by Weijia Wang's avatar Weijia Wang
Browse files

pwdsphinx: 2.0.3 -> 2.0.4

parent fb9f987b
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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
  '';