depot/third_party/nixpkgs/pkgs/development/python-modules/apispec-webframeworks/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

55 lines
1.1 KiB
Nix

{ lib
, apispec
, bottle
, buildPythonPackage
, fetchFromGitHub
, flit-core
, flask
, mock
, pytestCheckHook
, pythonOlder
, tornado
}:
buildPythonPackage rec {
pname = "apispec-webframeworks";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "marshmallow-code";
repo = "apispec-webframeworks";
rev = "refs/tags/${version}";
hash = "sha256-zrsqIZ5ZogZsK1ZOL2uy8igS4T8a+19IwL5dMhKw7OA=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
apispec
] ++ apispec.optional-dependencies.yaml;
nativeCheckInputs = [
bottle
flask
mock
pytestCheckHook
tornado
];
pythonImportsCheck = [
"apispec_webframeworks"
];
meta = with lib; {
description = "Web framework plugins for apispec";
homepage = "https://github.com/marshmallow-code/apispec-webframeworks";
changelog = "https://github.com/marshmallow-code/apispec-webframeworks/blob/${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}