summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/apispec-webframeworks/default.nix
blob: be3069c42f0bd18e93847d694b3623168368d951 (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
{
  lib,
  aiohttp,
  apispec,
  bottle,
  buildPythonPackage,
  fetchFromGitHub,
  flit-core,
  flask,
  mock,
  pytestCheckHook,
  tornado,
}:

buildPythonPackage rec {
  pname = "apispec-webframeworks";
  version = "1.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "marshmallow-code";
    repo = "apispec-webframeworks";
    tag = version;
    hash = "sha256-V4tdqcHfYRh9VoXUTPXM3SIOogJDJB14SLj5dSd7LzU=";
  };

  build-system = [ flit-core ];

  dependencies = [ apispec ] ++ apispec.optional-dependencies.yaml;

  nativeCheckInputs = [
    aiohttp
    bottle
    flask
    mock
    pytestCheckHook
    tornado
  ];

  pythonImportsCheck = [ "apispec_webframeworks" ];

  meta = {
    description = "Web framework plugins for apispec";
    homepage = "https://github.com/marshmallow-code/apispec-webframeworks";
    changelog = "https://github.com/marshmallow-code/apispec-webframeworks/blob/${version}/CHANGELOG.rst";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}