git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #162232 from fabaff/fix-xkcdpass

python3Packages.xkcdpass: disable failing test on Python 3.10

commitb196439b657ee4acc35c496e23ee2d4aa26fe6c3 authorFabian Affolter <fabian@affolter-engineering.ch> dateMon 28 Feb 2022, 19:42 (5 years ago) parent97201d55c35d6a
1 file changed+22−6
pkgs/development/python-modules/xkcdpass/default.nix+22−6
pkgs/development/python-modules/xkcdpass/default.nix+22−6
@@ -1,24 +1,40 @@
11{ lib
22, buildPythonPackage
33, fetchPypi
4−, pytestCheckHook
54, installShellFiles
5+, pytestCheckHook
6+, pythonAtLeast
7+, pythonOlder
68}:
79
810buildPythonPackage rec {
911 pname = "xkcdpass";
1012 version = "1.19.3";
13+ format = "setuptools";
14+
15+ disabled = pythonOlder "3.7";
1116
1217 src = fetchPypi {
1318 inherit pname version;
14− sha256 = "c5a2e948746da6fe504e8404284f457d8e98da6df5047c6bb3f71b18882e9d2a";
19+ hash = "sha256-xaLpSHRtpv5QToQEKE9FfY6Y2m31BHxrs/cbGIgunSo=";
1520 };
1621
17− nativeBuildInputs = [ installShellFiles ];
22+ nativeBuildInputs = [
23+ installShellFiles
24+ ];
25+
26+ checkInputs = [
27+ pytestCheckHook
28+ ];
1829
19− checkInputs = [ pytestCheckHook ];
30+ pythonImportsCheck = [
31+ "xkcdpass"
32+ ];
2033
21− pythonImportsCheck = [ "xkcdpass" ];
34+ disabledTests = lib.optionals (pythonAtLeast "3.10") [
35+ # https://github.com/redacted/XKCD-password-generator/issues/138
36+ "test_entropy_printout_valid_input"
37+ ];
2238
2339 postInstall = ''
2440 installManPage *.?
@@ -27,7 +43,7 @@ buildPythonPackage rec {
2743
2844 meta = with lib; {
2945 description = "Generate secure multiword passwords/passphrases, inspired by XKCD";
30− homepage = "https://pypi.python.org/pypi/xkcdpass/";
46+ homepage = "https://github.com/redacted/XKCD-password-generator";
3147 license = licenses.bsd3;
3248 maintainers = with maintainers; [ peterhoeg ];
3349 };