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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
# build-system
setuptools,
# dependencies
flask,
jsonschema,
mistune,
packaging,
pyyaml,
six,
werkzeug,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "flasgger";
version = "0.9.7.1";
pyproject = true;
src = fetchFromGitHub {
owner = "flasgger";
repo = "flasgger";
rev = "v${version}";
hash = "sha256-ULEf9DJiz/S2wKlb/vjGto8VCI0QDcm0pkU5rlOwtiE=";
};
patches = [
# https://github.com/flasgger/flasgger/pull/633
(fetchpatch {
name = "fix-tests-with-click-8.2.patch";
url = "https://github.com/flasgger/flasgger/commit/08591b60e988c0002fcf1b1e9f98b78e041d2732.patch";
hash = "sha256-DHaaY9W+cta3M2VA8S+ZQWacmgSpeyP03SKTiIlfBRM=";
})
];
build-system = [ setuptools ];
dependencies = [
flask
jsonschema
mistune
packaging
pyyaml
six
werkzeug
];
pythonImportsCheck = [ "flasgger" ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [
"tests"
];
disabledTestPaths = [
# missing flex dependency
"tests/test_examples.py"
];
meta = {
description = "Easy OpenAPI specs and Swagger UI for your Flask API";
homepage = "https://github.com/flasgger/flasgger/";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|