blob: 3b7dd09dc9fc336e61e21dc57e65cd3b4e54512a (
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
|
{
lib,
fetchFromGitHub,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "badkeys";
version = "0.0.11";
pyproject = true;
src = fetchFromGitHub {
owner = "badkeys";
repo = "badkeys";
rev = "refs/tags/v${version}";
hash = "sha256-VfkJeHEdvRc0Khf/C7ZUNpjd6t+hUULCTXXY80rs4Ko=";
};
build-system = with python3Packages; [
setuptools
setuptools-scm
];
dependencies = with python3Packages; [
cryptography
gmpy2
];
optional-dependencies = with python3Packages; [
dnspython
paramiko
];
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
pythonImportsCheck = [ "badkeys" ];
meta = {
description = "Tool to find common vulnerabilities in cryptographic public keys";
homepage = "https://badkeys.info/";
changelog = "https://github.com/badkeys/badkeys/releases/tag/${src.rev}";
mainProgram = "badkeys";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ getchoo ];
};
}
|