53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
badkeys,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
testers,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "badkeys";
|
|
version = "0.0.13";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "badkeys";
|
|
repo = "badkeys";
|
|
tag = "v${version}";
|
|
hash = "sha256-xukdaqyQKEnwPmAN4WZqeLo5g2tJxPehabTyDgCv8q4=";
|
|
};
|
|
|
|
build-system = with python3Packages; [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
cryptography
|
|
gmpy2
|
|
];
|
|
|
|
optional-dependencies = with python3Packages; [
|
|
dnspython
|
|
paramiko
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "badkeys" ];
|
|
|
|
passthru = {
|
|
tests.version = testers.testVersion { package = 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.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
|
mainProgram = "badkeys";
|
|
};
|
|
}
|