pythonPackages.apispec: init at 2.0.2

This commit is contained in:
Chris Ostrouchov 2019-07-18 19:01:06 -04:00 committed by Ariel
parent 4cb6a88b38
commit b9367e7a18
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchPypi
, pyyaml
, prance
, marshmallow
, pytest
, mock
, openapi-spec-validator
}:
buildPythonPackage rec {
pname = "apispec";
version = "2.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "11d1aaf620a80f67ded7688fcaf14fa4fd975d566876b5db69b067ffbfe4d1d9";
};
checkInputs = [
pyyaml
prance
openapi-spec-validator
marshmallow
pytest
mock
];
checkPhase = ''
pytest
'';
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 ];
};
}

View File

@ -1440,6 +1440,8 @@ in {
apipkg = callPackage ../development/python-modules/apipkg {};
apispec = callPackage ../development/python-modules/apispec {};
appdirs = callPackage ../development/python-modules/appdirs { };
appleseed = disabledIf isPy3k