nixpkgs/pkgs/development/python-modules/apispec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.2 KiB
Nix
Raw Normal View History

2019-07-18 23:01:06 +00:00
{
lib,
buildPythonPackage,
fetchPypi,
flit-core,
2019-07-18 23:01:06 +00:00
marshmallow,
mock,
openapi-spec-validator,
packaging,
prance,
pytestCheckHook,
pythonOlder,
pyyaml,
2019-07-18 23:01:06 +00:00
}:
buildPythonPackage rec {
pname = "apispec";
version = "6.6.1";
pyproject = true;
disabled = pythonOlder "3.8";
2019-07-18 23:01:06 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-9cqkfO51/gO5xQtVlASLTAUu7KLCEuDawS27YXXZplk=";
2019-07-18 23:01:06 +00:00
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ packaging ];
optional-dependencies = {
marshmallow = [ marshmallow ];
yaml = [ pyyaml ];
validation = [
openapi-spec-validator
prance
] ++ prance.optional-dependencies.osv;
};
nativeCheckInputs = [
2019-07-18 23:01:06 +00:00
mock
pytestCheckHook
] ++ lib.flatten (builtins.attrValues optional-dependencies);
2019-07-18 23:01:06 +00:00
pythonImportsCheck = [ "apispec" ];
2019-07-18 23:01:06 +00:00
meta = with lib; {
changelog = "https://github.com/marshmallow-code/apispec/blob/${version}/CHANGELOG.rst";
description = "Pluggable API specification generator with support for the OpenAPI Specification";
homepage = "https://github.com/marshmallow-code/apispec";
2019-07-18 23:01:06 +00:00
license = licenses.mit;
maintainers = [ ];
2019-07-18 23:01:06 +00:00
};
}