python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / of / offat / package.nix
blob83bb81df0fc8013c84834096a4469c89ab46a955
2   lib,
3   fetchFromGitHub,
4   python3,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "offat";
9   version = "0.19.3";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "OWASP";
14     repo = "OFFAT";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-LZd9nMeI+TMd95r6CuNAB7eMqrE97ne0ioPjuIbtK7w=";
17   };
19   sourceRoot = "${src.name}/src";
21   pythonRelaxDeps = [
22     "setuptools"
23     "tenacity"
24   ];
26   build-system = with python3.pkgs; [ poetry-core ];
28   dependencies = with python3.pkgs; [
29     aiohttp
30     aiolimiter
31     fastapi
32     openapi-spec-validator
33     requests
34     rich
35     setuptools
36     tenacity
37   ];
39   optional-dependencies = {
40     api = with python3.pkgs; [
41       fastapi
42       uvicorn
43       redis
44       rq
45       python-dotenv
46     ];
47   };
49   # Project has no tests
50   doCheck = false;
52   pythonImportsCheck = [ "offat" ];
54   meta = with lib; {
55     description = "Tool to test APIs for prevalent vulnerabilities";
56     homepage = "https://github.com/OWASP/OFFAT/";
57     changelog = "https://github.com/OWASP/OFFAT/releases/tag/v${version}";
58     license = licenses.mit;
59     maintainers = with maintainers; [ fab ];
60     mainProgram = "offat";
61   };