nixpkgs/pkgs/tools/security/crlfsuite/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

37 lines
763 B
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "crlfsuite";
version = "2.5.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "Nefcore";
repo = "CRLFsuite";
rev = "refs/tags/v${version}";
sha256 = "sha256-mK20PbVGhTEjhY5L6coCzSMIrG/PHHmNq30ZoJEs6uI=";
};
propagatedBuildInputs = with python3.pkgs; [
colorama
requests
];
# No tests present
doCheck = false;
pythonImportsCheck = [
"crlfsuite"
];
meta = with lib; {
description = "CRLF injection (HTTP Response Splitting) scanner";
mainProgram = "crlfsuite";
homepage = "https://github.com/Nefcore/CRLFsuite";
license = licenses.mit;
maintainers = with maintainers; [ c0bw3b fab ];
};
}