summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/aiohttp-swagger/default.nix
blob: 35c0ad1ceef822b24a035ba55e1d46178d5cb025 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  aiohttp,
  jinja2,
  markupsafe,
  pyyaml,
}:

buildPythonPackage rec {
  pname = "aiohttp-swagger";
  version = "1.0.15";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "cr0hn";
    repo = "aiohttp-swagger";
    tag = version;
    hash = "sha256-M43sNpbXWXFRTd549cZhvhO35nBB6OH+ki36BzSk87Q=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    aiohttp
    jinja2
    markupsafe
    pyyaml
  ];

  pythonRelaxDeps = [
    "markupsafe"
    "jinja2"
  ];

  pythonImportsCheck = [ "aiohttp_swagger" ];

  meta = {
    description = "Swagger API Documentation builder for aiohttp";
    homepage = "https://github.com/cr0hn/aiohttp-swagger";
    license = lib.licenses.mit;
  };
}