2019-07-19 00:01:06 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, 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";
|
2019-12-19 19:31:04 +00:00
|
|
|
version = "3.1.1";
|
2019-07-19 00:01:06 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:04 +00:00
|
|
|
sha256 = "24b8490c22310b0779a058ccb24ec2fef33d571bb5aba1f525ab5963b0eabcdd";
|
2019-07-19 00:01:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pyyaml
|
|
|
|
prance
|
|
|
|
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";
|
|
|
|
homepage = https://github.com/marshmallow-code/apispec;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|