2024-05-12 23:56:56 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3Packages,
|
|
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "badkeys";
|
2024-05-19 02:03:26 +00:00
|
|
|
version = "0.0.11";
|
2024-05-12 23:56:56 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "badkeys";
|
|
|
|
repo = "badkeys";
|
2024-05-19 02:03:26 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-VfkJeHEdvRc0Khf/C7ZUNpjd6t+hUULCTXXY80rs4Ko=";
|
2024-05-12 23:56:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|