Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / of / offat / package.nix
blob07bdc8589ac9760aecedec9d5c635e50c74db151
2   lib,
3   fetchFromGitHub,
4   python3,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "offat";
9   version = "0.19.1";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "OWASP";
14     repo = "OFFAT";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-USSvUtY5THzsWlJtVYxrCquRJWfAoD7b7NHP7pB27sg=";
17   };
19   sourceRoot = "${src.name}/src";
21   build-system = with python3.pkgs; [ poetry-core ];
23   dependencies = with python3.pkgs; [
24     aiohttp
25     aiolimiter
26     fastapi
27     openapi-spec-validator
28     requests
29     rich
30     setuptools
31     tenacity
32   ];
34   passthru.optional-dependencies = {
35     api = with python3.pkgs; [
36       fastapi
37       uvicorn
38       redis
39       rq
40       python-dotenv
41     ];
42   };
44   # Project has no tests
45   doCheck = false;
47   pythonImportsCheck = [ "offat" ];
49   meta = with lib; {
50     description = "Tool to test APIs for prevalent vulnerabilities";
51     homepage = "https://github.com/OWASP/OFFAT/";
52     changelog = "https://github.com/OWASP/OFFAT/releases/tag/v${version}";
53     license = licenses.mit;
54     maintainers = with maintainers; [ fab ];
55     mainProgram = "offat";
56   };