1 { lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pytestCheckHook
2 , certvalidator, pyasn1, pyasn1-modules
5 buildPythonPackage rec {
8 disabled = pythonOlder "3.5";
10 src = fetchFromGitHub {
14 sha256 = "sha256-JxQECpwHhPm8TCVW/bCnEpu5I/WETyZVBx29SQE4NmE=";
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
24 propagatedBuildInputs = [ certvalidator pyasn1 pyasn1-modules ];
26 checkInputs = [ pytestCheckHook ];
27 pytestFlagsArray = [ "-v" ];
28 pythonImportsCheck = [ "signify" ];
31 homepage = "https://github.com/ralphje/signify";
32 description = "library that verifies PE Authenticode-signed binaries";
33 license = licenses.mit;
34 maintainers = with maintainers; [ baloo ];