depot/third_party/nixpkgs/pkgs/development/python-modules/apispec-webframeworks/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

52 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.2.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "marshmallow-code";
repo = "apispec-webframeworks";
rev = "refs/tags/${version}";
hash = "sha256-V4tdqcHfYRh9VoXUTPXM3SIOogJDJB14SLj5dSd7LzU=";
};
build-system = [ flit-core ];
dependencies = [ 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 ];
};
}