blob: dbad1a8167db2c48e7937fb27da05000bfa3743b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, asn1crypto
, certvalidator
, oscrypto
, pyasn1
, pyasn1-modules
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "signify";
version = "0.4.0";
disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchFromGitHub {
owner = "ralphje";
repo = pname;
rev = "v${version}";
sha256 = "sha256-YJc9RIqkEL7dd1ahE4IbxyyZgsZWBDqbXZAvI/nK24M=";
};
propagatedBuildInputs = [
asn1crypto
certvalidator
oscrypto
pyasn1
pyasn1-modules
];
pythonImportsCheck = [
"signify"
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
# chain doesn't validate because end-entitys certificate expired
# https://github.com/ralphje/signify/issues/27
"test_revoked_certificate"
];
meta = with lib; {
homepage = "https://github.com/ralphje/signify";
description = "library that verifies PE Authenticode-signed binaries";
license = licenses.mit;
maintainers = with maintainers; [ baloo ];
};
}
|