Merge pull request #268540 from tribals/master

Fix failing build of `xkcdpass` due to non-deterministic test
This commit is contained in:
Alexander Bantyev 2023-11-20 18:29:08 +04:00 committed by GitHub
commit be9cb506b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ 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
];