lol

python3Packages.signify: 0.3 -> 0.4

Disables a test, that fails because of an expired certificate.

+33 -15
+33 -15
pkgs/development/python-modules/signify/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pytestCheckHook 2 - , certvalidator, pyasn1, pyasn1-modules 1 + { lib 2 + , buildPythonPackage 3 + , pythonOlder 4 + , fetchFromGitHub 5 + , asn1crypto 6 + , certvalidator 7 + , oscrypto 8 + , pyasn1 9 + , pyasn1-modules 10 + , pytestCheckHook 3 11 }: 4 12 5 13 buildPythonPackage rec { 6 14 pname = "signify"; 7 - version = "0.3.0"; 8 - disabled = pythonOlder "3.5"; 15 + version = "0.4.0"; 16 + disabled = pythonOlder "3.6"; 17 + format = "setuptools"; 9 18 10 19 src = fetchFromGitHub { 11 20 owner = "ralphje"; 12 21 repo = pname; 13 22 rev = "v${version}"; 14 - sha256 = "sha256-JxQECpwHhPm8TCVW/bCnEpu5I/WETyZVBx29SQE4NmE="; 23 + sha256 = "sha256-YJc9RIqkEL7dd1ahE4IbxyyZgsZWBDqbXZAvI/nK24M="; 15 24 }; 16 - patches = [ 17 - # Upstream patch is available here: 18 - # https://github.com/ralphje/signify/commit/8c345be954e898a317825bb450bed5ba0304b2b5.patch 19 - # But update a couple other things and dont apply cleanly. This is an extract of the part 20 - # we care about and breaks the tests after 2021-03-01 21 - ./certificate-expiration-date.patch 25 + 26 + propagatedBuildInputs = [ 27 + asn1crypto 28 + certvalidator 29 + oscrypto 30 + pyasn1 31 + pyasn1-modules 22 32 ]; 23 33 24 - propagatedBuildInputs = [ certvalidator pyasn1 pyasn1-modules ]; 34 + pythonImportsCheck = [ 35 + "signify" 36 + ]; 25 37 26 - checkInputs = [ pytestCheckHook ]; 27 - pytestFlagsArray = [ "-v" ]; 28 - pythonImportsCheck = [ "signify" ]; 38 + checkInputs = [ 39 + pytestCheckHook 40 + ]; 41 + 42 + disabledTests = [ 43 + # chain doesn't validate because end-entitys certificate expired 44 + # https://github.com/ralphje/signify/issues/27 45 + "test_revoked_certificate" 46 + ]; 29 47 30 48 meta = with lib; { 31 49 homepage = "https://github.com/ralphje/signify";