From 65bf2855b29f2a564108bb24b48a5be82e23fa51 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Oct 2024 14:24:48 +0100 Subject: [PATCH] gsan: init at 5.0.0 Tool to extract subdomains from SSL certificates in HTTPS sites https://github.com/franccesco/getaltname --- pkgs/by-name/gs/gsan/package.nix | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/gs/gsan/package.nix diff --git a/pkgs/by-name/gs/gsan/package.nix b/pkgs/by-name/gs/gsan/package.nix new file mode 100644 index 000000000000..8217d4b1c3c2 --- /dev/null +++ b/pkgs/by-name/gs/gsan/package.nix @@ -0,0 +1,42 @@ +{ + lib, + fetchFromGitHub, + python3, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "gsan"; + version = "5.0.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "franccesco"; + repo = "getaltname"; + rev = "refs/tags/v${version}"; + hash = "sha256-Os/NappuvdadGqCouF5vhvPhRnu1SLpii+Esq0C1j48="; + }; + + build-system = with python3.pkgs; [ setuptools ]; + + dependencies = with python3.pkgs; [ + cryptography + pyasn1 + pyopenssl + rich + typer + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "gsan" ]; + + meta = { + description = "Tool to extract subdomains from SSL certificates in HTTPS sites"; + homepage = "https://github.com/franccesco/getaltname"; + changelog = "https://github.com/franccesco/getaltname/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "gsan"; + }; +}