1{ lib
2, buildPythonPackage
3, fetchPypi
4, marshmallow
5, mock
6, openapi-spec-validator
7, prance
8, pytestCheckHook
9, pythonOlder
10, pyyaml
11}:
12
13buildPythonPackage rec {
14 pname = "apispec";
15 version = "5.2.2";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-bqZULh6//p/ZW6Ae8/UTUerGwgCpdFYsdHMFm5zSCqc=";
23 };
24
25 propagatedBuildInputs = [
26 pyyaml
27 prance
28 ];
29
30 checkInputs = [
31 openapi-spec-validator
32 marshmallow
33 mock
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "apispec"
39 ];
40
41 meta = with lib; {
42 description = "A pluggable API specification generator with support for the OpenAPI Specification";
43 homepage = "https://github.com/marshmallow-code/apispec";
44 license = licenses.mit;
45 maintainers = with maintainers; [ costrouc ];
46 };
47}