diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/security/hstsparser/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/security/hstsparser/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/security/hstsparser/default.nix b/nixpkgs/pkgs/tools/security/hstsparser/default.nix new file mode 100644 index 000000000000..8b4e4882f556 --- /dev/null +++ b/nixpkgs/pkgs/tools/security/hstsparser/default.nix @@ -0,0 +1,37 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "hstsparser"; + version = "1.2.0"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "thebeanogamer"; + repo = "hstsparser"; + rev = "refs/tags/${version}"; + hash = "sha256-9ZNBzPa4mFXbao73QukEL56sM/3dg4ElOMXgNGTVh1g="; + }; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + prettytable + ]; + + pythonImportsCheck = [ + "hstsparser" + ]; + + meta = with lib; { + description = "Tool to parse Firefox and Chrome HSTS databases into forensic artifacts"; + homepage = "https://github.com/thebeanogamer/hstsparser"; + changelog = "https://github.com/thebeanogamer/hstsparser/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} |