nixpkgs/pkgs/tools/security/hfinger/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
948 B
Nix
Raw Normal View History

2021-04-10 23:22:19 +01:00
{ lib
, fetchFromGitHub
, python3
, wireshark-cli
}:
python3.pkgs.buildPythonApplication rec {
pname = "hfinger";
2024-01-20 09:12:25 +00:00
version = "0.2.2";
2024-03-03 13:51:53 +00:00
pyproject = true;
2021-04-10 23:22:19 +01:00
src = fetchFromGitHub {
owner = "CERT-Polska";
2024-03-03 13:51:53 +00:00
repo = "hfinger";
2024-01-20 09:12:25 +00:00
rev = "refs/tags/v${version}";
2024-03-03 13:51:53 +00:00
hash = "sha256-gxwirAqtY4R3KDHyNmDIknABO+SFuoDua9nm1UyXbxA=";
2021-04-10 23:22:19 +01:00
};
2024-03-03 13:51:53 +00:00
nativeBuildInputs = with python3.pkgs; [
setuptools
];
2021-04-10 23:22:19 +01:00
propagatedBuildInputs = with python3.pkgs; [
fnvhash
python-magic
2021-04-10 23:22:19 +01:00
] ++ [
wireshark-cli
];
# Project has no tests
doCheck = false;
2024-03-03 13:51:53 +00:00
pythonImportsCheck = [
"hfinger"
];
2021-04-10 23:22:19 +01:00
meta = with lib; {
description = "Fingerprinting tool for HTTP requests";
mainProgram = "hfinger";
2021-04-10 23:22:19 +01:00
homepage = "https://github.com/CERT-Polska/hfinger";
2024-03-03 13:51:53 +00:00
changelog = "https://github.com/CERT-Polska/hfinger/releases/tag/v${version}";
2021-04-10 23:22:19 +01:00
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
};
}