certmitm: init at 0-unstable-2025-05-14

Tool for testing for certificate validation vulnerabilities of
TLS connections

https://github.com/aapooksman/certmitm

+45
+45
pkgs/by-name/ce/certmitm/package.nix
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + python3, 5 + }: 6 + 7 + python3.pkgs.buildPythonApplication rec { 8 + pname = "certmitm"; 9 + version = "0-unstable-2025-05-14"; 10 + pyproject = false; 11 + 12 + src = fetchFromGitHub { 13 + owner = "aapooksman"; 14 + repo = "certmitm"; 15 + rev = "f04c91a1ba231762ec126487f593f9b4d33f4ec2"; 16 + hash = "sha256-i4DnOyn56lA63hI40uxtXX8dzMa29BPQQHWKFdVjVlM="; 17 + }; 18 + 19 + dependencies = with python3.pkgs; [ 20 + dpkt 21 + pyopenssl 22 + ]; 23 + 24 + installPhase = '' 25 + runHook preInstall 26 + 27 + install -vD certmitm.py $out/bin/certmitm 28 + install -vd $out/${python3.sitePackages}/ 29 + cp -R certmitm $out/${python3.sitePackages} 30 + 31 + runHook postInstall 32 + ''; 33 + 34 + # Project has not tests 35 + doCheck = false; 36 + 37 + meta = { 38 + description = "Tool for testing for certificate validation vulnerabilities of TLS connections"; 39 + homepage = "https://github.com/aapooksman/certmitm"; 40 + license = lib.licenses.mit; 41 + maintainers = with lib.maintainers; [ fab ]; 42 + mainProgram = "certmitm"; 43 + platforms = lib.platforms.all; 44 + }; 45 + }