depot/third_party/nixpkgs/pkgs/by-name/ba/badkeys/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
1,016 B
Nix

{
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 ];
};
}