nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "offat";
9 version = "0.19.4";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "OWASP";
14 repo = "OFFAT";
15 tag = "v${version}";
16 hash = "sha256-XFYG8/QJfm9fx88xHBXe3hK6rTj1lVQze/X9joxKZuc=";
17 };
18
19 sourceRoot = "${src.name}/src";
20
21 pythonRelaxDeps = [
22 "rich"
23 "setuptools"
24 "tenacity"
25 ];
26
27 build-system = with python3.pkgs; [ poetry-core ];
28
29 dependencies = with python3.pkgs; [
30 aiohttp
31 aiolimiter
32 fastapi
33 openapi-spec-validator
34 requests
35 rich
36 setuptools
37 tenacity
38 ];
39
40 optional-dependencies = {
41 api = with python3.pkgs; [
42 fastapi
43 uvicorn
44 redis
45 rq
46 python-dotenv
47 ];
48 };
49
50 # Project has no tests
51 doCheck = false;
52
53 pythonImportsCheck = [ "offat" ];
54
55 meta = {
56 description = "Tool to test APIs for prevalent vulnerabilities";
57 homepage = "https://github.com/OWASP/OFFAT/";
58 changelog = "https://github.com/OWASP/OFFAT/releases/tag/${src.tag}";
59 license = lib.licenses.mit;
60 maintainers = with lib.maintainers; [ fab ];
61 mainProgram = "offat";
62 };
63}