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