nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchFromGitHub,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "hstsparser";
9 version = "1.2.0";
10 format = "pyproject";
11
12 src = fetchFromGitHub {
13 owner = "thebeanogamer";
14 repo = "hstsparser";
15 tag = version;
16 hash = "sha256-9ZNBzPa4mFXbao73QukEL56sM/3dg4ElOMXgNGTVh1g=";
17 };
18
19 nativeBuildInputs = with python3.pkgs; [
20 poetry-core
21 ];
22
23 propagatedBuildInputs = with python3.pkgs; [
24 prettytable
25 ];
26
27 pythonImportsCheck = [
28 "hstsparser"
29 ];
30
31 meta = {
32 description = "Tool to parse Firefox and Chrome HSTS databases into forensic artifacts";
33 mainProgram = "hstsparser";
34 homepage = "https://github.com/thebeanogamer/hstsparser";
35 changelog = "https://github.com/thebeanogamer/hstsparser/releases/tag/${version}";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ fab ];
38 };
39}