2022-02-14 11:01:25 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
2022-02-14 11:44:36 +00:00
|
|
|
apispec,
|
2022-02-14 11:01:25 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2022-02-14 11:44:36 +00:00
|
|
|
jinja2,
|
|
|
|
packaging,
|
2022-02-14 11:47:22 +00:00
|
|
|
pytest-aiohttp,
|
|
|
|
pytestCheckHook,
|
2022-02-14 11:01:25 +00:00
|
|
|
pythonOlder,
|
|
|
|
webargs,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohttp-apispec";
|
2022-04-26 21:22:27 +00:00
|
|
|
version = "3.0.0b2";
|
2022-02-14 11:01:25 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maximdanilchenko";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-26 21:22:27 +00:00
|
|
|
hash = "sha256-C+/M25oCLTNGGEUj2EyXn3UjcvPvDYFmmUW8IOoF1uU=";
|
2022-02-14 11:01:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2022-02-14 11:44:36 +00:00
|
|
|
apispec
|
2022-02-14 11:01:25 +00:00
|
|
|
jinja2
|
2022-02-14 11:44:36 +00:00
|
|
|
packaging
|
2022-02-14 11:01:25 +00:00
|
|
|
webargs
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-14 11:47:22 +00:00
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-02-14 11:01:25 +00:00
|
|
|
pythonImportsCheck = [ "aiohttp_apispec" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Build and document REST APIs with aiohttp and apispec";
|
|
|
|
homepage = "https://github.com/maximdanilchenko/aiohttp-apispec/";
|
|
|
|
license = licenses.mit;
|
2024-07-28 14:48:51 +00:00
|
|
|
maintainers = [ ];
|
2022-02-14 11:01:25 +00:00
|
|
|
};
|
|
|
|
}
|