depot/third_party/nixpkgs/pkgs/development/python-modules/apispec-webframeworks/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

57 lines
1.1 KiB
Nix

{ lib
, aiohttp
, apispec
, bottle
, buildPythonPackage
, fetchFromGitHub
, flit-core
, flask
, mock
, pytestCheckHook
, pythonOlder
, tornado
}:
buildPythonPackage rec {
pname = "apispec-webframeworks";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "marshmallow-code";
repo = "apispec-webframeworks";
rev = "refs/tags/${version}";
hash = "sha256-qepiaRW36quIgxBtEHMF3HN0wO6jp2uGAHgg5fJoMUY=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
apispec
] ++ apispec.optional-dependencies.yaml;
nativeCheckInputs = [
aiohttp
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 ];
};
}