Unverified Commit be9cb506 authored by Alexander Bantyev's avatar Alexander Bantyev Committed by GitHub
Browse files

Merge pull request #268540 from tribals/master

Fix failing build of `xkcdpass` due to non-deterministic test
parents a309ddb4 2ec633e8
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, installShellFiles
, pytestCheckHook
, pythonAtLeast
@@ -19,6 +20,14 @@ buildPythonPackage rec {
    hash = "sha256-zEgC3tTQ6kwDovHPHRTvYndWVF79DpnAX454VDZiedE=";
  };

  patches = [
    (fetchpatch {
      name = "fix-non-deterministic-test.patch";
      url = "https://github.com/redacted/XKCD-password-generator/commit/72d174a82822af1934c94de1b66fd956230142f5.patch";
      hash = "sha256-GES40GHM0+Zx8bRceCy9/fOHJVlWZ7TCLfzhZczjfTE=";
    })
  ];

  nativeBuildInputs = [
    installShellFiles
  ];