summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/swagger-ui-py/default.nix
blob: 248cd4cc08edcff2140cafdb3a61e7b9608a058e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  jinja2,
  packaging,
  pyyaml,
}:

buildPythonPackage rec {
  pname = "swagger-ui-py";
  version = "25.7.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "PWZER";
    repo = "swagger-ui-py";
    tag = "v${version}";
    hash = "sha256-yPGt7EG8KvGoI7Unz0E7fn7nG9Ei/h8Q3TDKnuVVRkQ=";
  };

  env.VERSION = version;

  build-system = [
    setuptools
  ];

  dependencies = [
    jinja2
    packaging
    pyyaml
  ];

  doCheck = false; # huge dependency closure on all sorts of web frameworks, http clients, etc.

  pythonImportsCheck = [
    "swagger_ui"
  ];

  meta = {
    changelog = "https://github.com/PWZER/swagger-ui-py/releases/tag/${src.tag}";
    description = "Swagger UI for Python web framework, such Tornado, Flask and Sanic. https://pwzer.github.io/swagger-ui-py";
    homepage = "https://github.com/PWZER/swagger-ui-py";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ hexa ];
  };
}