2019-07-18 23:01:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, marshmallow
|
|
|
|
, mock
|
|
|
|
, openapi-spec-validator
|
2022-04-30 13:51:42 +00:00
|
|
|
, prance
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
2019-07-18 23:01:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apispec";
|
2022-05-13 11:44:30 +00:00
|
|
|
version = "5.2.2";
|
2022-04-30 13:51:42 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-07-18 23:01:06 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-05-13 11:44:30 +00:00
|
|
|
hash = "sha256-bqZULh6//p/ZW6Ae8/UTUerGwgCpdFYsdHMFm5zSCqc=";
|
2019-07-18 23:01:06 +00:00
|
|
|
};
|
|
|
|
|
2021-05-14 19:42:27 +00:00
|
|
|
propagatedBuildInputs = [
|
2019-07-18 23:01:06 +00:00
|
|
|
pyyaml
|
|
|
|
prance
|
2021-05-14 19:42:27 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2019-07-18 23:01:06 +00:00
|
|
|
openapi-spec-validator
|
|
|
|
marshmallow
|
|
|
|
mock
|
2019-11-15 21:14:25 +00:00
|
|
|
pytestCheckHook
|
2019-07-18 23:01:06 +00:00
|
|
|
];
|
|
|
|
|
2022-04-30 13:51:42 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"apispec"
|
|
|
|
];
|
2021-07-02 07:20:30 +00:00
|
|
|
|
2019-07-18 23:01:06 +00:00
|
|
|
meta = with lib; {
|
2021-07-02 07:20:30 +00:00
|
|
|
description = "A pluggable API specification generator with support for the OpenAPI Specification";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/marshmallow-code/apispec";
|
2019-07-18 23:01:06 +00:00
|
|
|
license = licenses.mit;
|
2022-04-30 13:51:42 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-07-18 23:01:06 +00:00
|
|
|
};
|
|
|
|
}
|