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.

48 lines
853 B
Nix
Raw Normal View History

2019-07-18 23:01:06 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, marshmallow
, mock
, openapi-spec-validator
, prance
, pytestCheckHook
, pythonOlder
, pyyaml
2019-07-18 23:01:06 +00:00
}:
buildPythonPackage rec {
pname = "apispec";
version = "5.2.2";
format = "setuptools";
disabled = pythonOlder "3.7";
2019-07-18 23:01:06 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-bqZULh6//p/ZW6Ae8/UTUerGwgCpdFYsdHMFm5zSCqc=";
2019-07-18 23:01:06 +00:00
};
propagatedBuildInputs = [
2019-07-18 23:01:06 +00:00
pyyaml
prance
];
checkInputs = [
2019-07-18 23:01:06 +00:00
openapi-spec-validator
marshmallow
mock
pytestCheckHook
2019-07-18 23:01:06 +00:00
];
pythonImportsCheck = [
"apispec"
];
2019-07-18 23:01:06 +00: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-18 23:01:06 +00:00
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
2019-07-18 23:01:06 +00:00
};
}