nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 1.1 kB view raw
1{ 2 lib, 3 badkeys, 4 fetchFromGitHub, 5 python3Packages, 6 testers, 7}: 8 9python3Packages.buildPythonApplication rec { 10 pname = "badkeys"; 11 version = "0.0.16"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "badkeys"; 16 repo = "badkeys"; 17 tag = "v${version}"; 18 hash = "sha256-pWbrp+2CBU+dxyXUXT+oSS2fvPjO7qSVHEcoHpXR4JM="; 19 }; 20 21 build-system = with python3Packages; [ 22 setuptools 23 setuptools-scm 24 ]; 25 26 dependencies = with python3Packages; [ 27 cryptography 28 gmpy2 29 ]; 30 31 optional-dependencies = with python3Packages; [ 32 dnspython 33 paramiko 34 ]; 35 36 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 37 38 pythonImportsCheck = [ "badkeys" ]; 39 40 passthru = { 41 tests.version = testers.testVersion { package = badkeys; }; 42 }; 43 44 meta = { 45 description = "Tool to find common vulnerabilities in cryptographic public keys"; 46 homepage = "https://badkeys.info/"; 47 changelog = "https://github.com/badkeys/badkeys/releases/tag/${src.tag}"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ getchoo ]; 50 mainProgram = "badkeys"; 51 }; 52}