2019-07-19 00:01:06 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-05-14 20:42:27 +01:00
|
|
|
, pythonOlder
|
2019-07-19 00:01:06 +01:00
|
|
|
, pyyaml
|
|
|
|
, prance
|
|
|
|
, marshmallow
|
2019-11-15 21:14:25 +00:00
|
|
|
, pytestCheckHook
|
2019-07-19 00:01:06 +01:00
|
|
|
, mock
|
|
|
|
, openapi-spec-validator
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apispec";
|
2021-06-18 22:47:08 +01:00
|
|
|
version = "4.6.0";
|
2021-05-14 20:42:27 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-07-19 00:01:06 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 22:47:08 +01:00
|
|
|
sha256 = "a896f97394b7d046d46c65262e51e45241dd8d9d71eedebcdb2d7024b775eec4";
|
2019-07-19 00:01:06 +01:00
|
|
|
};
|
|
|
|
|
2021-05-14 20:42:27 +01:00
|
|
|
propagatedBuildInputs = [
|
2019-07-19 00:01:06 +01:00
|
|
|
pyyaml
|
|
|
|
prance
|
2021-05-14 20:42:27 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2019-07-19 00:01:06 +01:00
|
|
|
openapi-spec-validator
|
|
|
|
marshmallow
|
|
|
|
mock
|
2019-11-15 21:14:25 +00:00
|
|
|
pytestCheckHook
|
2019-07-19 00:01:06 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/marshmallow-code/apispec";
|
2019-07-19 00:01:06 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|