depot/third_party/nixpkgs/pkgs/development/python-modules/aiohttp-apispec/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

50 lines
931 B
Nix

{
lib,
aiohttp,
apispec,
buildPythonPackage,
fetchFromGitHub,
jinja2,
packaging,
pytest-aiohttp,
pytestCheckHook,
pythonOlder,
webargs,
}:
buildPythonPackage rec {
pname = "aiohttp-apispec";
version = "3.0.0b2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "maximdanilchenko";
repo = pname;
rev = "v${version}";
hash = "sha256-C+/M25oCLTNGGEUj2EyXn3UjcvPvDYFmmUW8IOoF1uU=";
};
propagatedBuildInputs = [
aiohttp
apispec
jinja2
packaging
webargs
];
nativeCheckInputs = [
pytest-aiohttp
pytestCheckHook
];
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;
maintainers = with maintainers; [ viric ];
};
}