3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/apispec/default.nix

44 lines
817 B
Nix
Raw Normal View History

2019-07-19 00:01:06 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
2019-07-19 00:01:06 +01:00
, pyyaml
, prance
, marshmallow
, pytestCheckHook
2019-07-19 00:01:06 +01:00
, mock
, openapi-spec-validator
}:
buildPythonPackage rec {
pname = "apispec";
version = "4.7.0";
disabled = pythonOlder "3.6";
2019-07-19 00:01:06 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-v6G+yLWyzqZyfgIMOm/hHZYwiN0u1hbhFHXOry1naTc=";
2019-07-19 00:01:06 +01:00
};
propagatedBuildInputs = [
2019-07-19 00:01:06 +01:00
pyyaml
prance
];
checkInputs = [
2019-07-19 00:01:06 +01:00
openapi-spec-validator
marshmallow
mock
pytestCheckHook
2019-07-19 00:01:06 +01:00
];
pythonImportsCheck = [ "apispec" ];
2019-07-19 00:01:06 +01:00
meta = with lib; {
description = "A pluggable API specification generator with support for the OpenAPI Specification";
homepage = "https://github.com/marshmallow-code/apispec";
2019-07-19 00:01:06 +01:00
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}