2019-07-18 23:01:06 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-03-05 09:04:09 +00:00
|
|
|
flit-core,
|
2019-07-18 23:01:06 +00:00
|
|
|
marshmallow,
|
|
|
|
mock,
|
|
|
|
openapi-spec-validator,
|
2023-02-20 09:34:17 +00:00
|
|
|
packaging,
|
2022-04-30 13:51:42 +00:00
|
|
|
prance,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
2019-07-18 23:01:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apispec";
|
2024-04-26 13:49:27 +00:00
|
|
|
version = "6.6.1";
|
2024-03-05 09:04:09 +00:00
|
|
|
pyproject = true;
|
2022-04-30 13:51:42 +00:00
|
|
|
|
2024-03-05 09:04:09 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2019-07-18 23:01:06 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-26 13:49:27 +00:00
|
|
|
hash = "sha256-9cqkfO51/gO5xQtVlASLTAUu7KLCEuDawS27YXXZplk=";
|
2019-07-18 23:01:06 +00:00
|
|
|
};
|
|
|
|
|
2024-03-05 09:04:09 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
|
2021-05-14 19:42:27 +00:00
|
|
|
propagatedBuildInputs = [ packaging ];
|
|
|
|
|
2024-09-29 05:35:45 +00:00
|
|
|
optional-dependencies = {
|
2023-02-20 09:34:17 +00:00
|
|
|
marshmallow = [ marshmallow ];
|
|
|
|
yaml = [ pyyaml ];
|
|
|
|
validation = [
|
|
|
|
openapi-spec-validator
|
|
|
|
prance
|
2023-03-08 00:17:18 +00:00
|
|
|
] ++ prance.optional-dependencies.osv;
|
2023-02-20 09:34:17 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2019-07-18 23:01:06 +00:00
|
|
|
mock
|
2019-11-15 21:14:25 +00:00
|
|
|
pytestCheckHook
|
2024-09-29 05:35:45 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
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; {
|
2023-01-22 00:25:16 +00:00
|
|
|
changelog = "https://github.com/marshmallow-code/apispec/blob/${version}/CHANGELOG.rst";
|
2021-07-02 07:20:30 +00:00
|
|
|
description = "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;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2019-07-18 23:01:06 +00:00
|
|
|
};
|
|
|
|
}
|