nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python3Packages.xkcdpass: disable failing test on Python 3.10

+22 -6
+22 -6
pkgs/development/python-modules/xkcdpass/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , pytestCheckHook 5 4 , installShellFiles 5 + , pytestCheckHook 6 + , pythonAtLeast 7 + , pythonOlder 6 8 }: 7 9 8 10 buildPythonPackage rec { 9 11 pname = "xkcdpass"; 10 12 version = "1.19.3"; 13 + format = "setuptools"; 14 + 15 + disabled = pythonOlder "3.7"; 11 16 12 17 src = fetchPypi { 13 18 inherit pname version; 14 - sha256 = "c5a2e948746da6fe504e8404284f457d8e98da6df5047c6bb3f71b18882e9d2a"; 19 + hash = "sha256-xaLpSHRtpv5QToQEKE9FfY6Y2m31BHxrs/cbGIgunSo="; 15 20 }; 16 21 17 - nativeBuildInputs = [ installShellFiles ]; 22 + nativeBuildInputs = [ 23 + installShellFiles 24 + ]; 18 25 19 - checkInputs = [ pytestCheckHook ]; 26 + checkInputs = [ 27 + pytestCheckHook 28 + ]; 20 29 21 - pythonImportsCheck = [ "xkcdpass" ]; 30 + pythonImportsCheck = [ 31 + "xkcdpass" 32 + ]; 33 + 34 + disabledTests = lib.optionals (pythonAtLeast "3.10") [ 35 + # https://github.com/redacted/XKCD-password-generator/issues/138 36 + "test_entropy_printout_valid_input" 37 + ]; 22 38 23 39 postInstall = '' 24 40 installManPage *.? ··· 43 27 44 28 meta = with lib; { 45 29 description = "Generate secure multiword passwords/passphrases, inspired by XKCD"; 46 - homepage = "https://pypi.python.org/pypi/xkcdpass/"; 30 + homepage = "https://github.com/redacted/XKCD-password-generator"; 47 31 license = licenses.bsd3; 48 32 maintainers = with maintainers; [ peterhoeg ]; 49 33 };