nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3,
5 semgrep,
6}:
7
8python3.pkgs.buildPythonApplication rec {
9 pname = "route-detect";
10 version = "0.8.0";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "mschwager";
15 repo = "route-detect";
16 tag = version;
17 hash = "sha256-4WkYjAQyteHJTJvSZoSfVUnBvsDQ3TWb5Ttp3uCgvdU=";
18 };
19
20 build-system = with python3.pkgs; [ poetry-core ];
21
22 dependencies = [ semgrep ];
23
24 nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
25
26 pythonImportsCheck = [ "routes" ];
27
28 meta = {
29 description = "Find authentication (authn) and authorization (authz) security bugs in web application routes";
30 homepage = "https://github.com/mschwager/route-detect";
31 changelog = "https://github.com/mschwager/route-detect/blob/${src.rev}/CHANGELOG.md";
32 license = lib.licenses.bsd3;
33 maintainers = with lib.maintainers; [ fab ];
34 mainProgram = "routes";
35 };
36}