diff --git a/srcpkgs/xkcdpass/patches/fix-tests.patch b/srcpkgs/xkcdpass/patches/fix-tests.patch new file mode 100644 index 00000000000..5ff699744f2 --- /dev/null +++ b/srcpkgs/xkcdpass/patches/fix-tests.patch @@ -0,0 +1,11 @@ +--- a/tests/test_xkcdpass.py ++++ b/tests/test_xkcdpass.py +@@ -58,7 +58,7 @@ + wordlist, numwords=numwords, random_delimiters=True + ) + # check that the result is the right length +- self.assertEquals(len(result), numwords * wordlength + (numwords - 1)) ++ self.assertEqual(len(result), numwords * wordlength + (numwords - 1)) + # check we have the right number of delimiters + self.assertEqual( + len([x for x in result if x in set(xkcd_password.DEFAULT_DELIMITERS)]), diff --git a/srcpkgs/xkcdpass/template b/srcpkgs/xkcdpass/template index eb5d748c077..b934b25b838 100644 --- a/srcpkgs/xkcdpass/template +++ b/srcpkgs/xkcdpass/template @@ -1,6 +1,6 @@ # Template file for 'xkcdpass' pkgname=xkcdpass -version=1.19.6 +version=1.19.8 revision=1 build_style=python3-module hostmakedepends="python3-setuptools" @@ -11,7 +11,7 @@ maintainer="Orphaned " license="BSD-3-Clause" homepage="https://github.com/redacted/XKCD-password-generator" distfiles="https://github.com/redacted/XKCD-password-generator/archive/xkcdpass-${version}.tar.gz" -checksum=f164d5b3f5c2788c6424147e7d5bd0472265e4bed2baa18bed20e9755c405d7a +checksum=8e0b4d48edb9d3ec70fd119849e160aea0c52f765e38391883c6a02257367ae6 post_install() { vman xkcdpass.1