depot/pkgs/by-name/ro/route-detect/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

36 lines
927 B
Nix

{
lib,
fetchFromGitHub,
python3,
semgrep,
}:
python3.pkgs.buildPythonApplication rec {
pname = "route-detect";
version = "0.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "mschwager";
repo = "route-detect";
rev = "refs/tags/${version}";
hash = "sha256-4WkYjAQyteHJTJvSZoSfVUnBvsDQ3TWb5Ttp3uCgvdU=";
};
build-system = with python3.pkgs; [ poetry-core ];
dependencies = [ semgrep ];
nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
pythonImportsCheck = [ "routes" ];
meta = {
description = "Find authentication (authn) and authorization (authz) security bugs in web application routes";
homepage = "https://github.com/mschwager/route-detect";
changelog = "https://github.com/mschwager/route-detect/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "routes";
};
}