8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
33 lines
787 B
Nix
33 lines
787 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, aiohttp
|
|
, flake8
|
|
, jinja2
|
|
, pytestCheckHook
|
|
, pytest-aiohttp
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiohttp-swagger";
|
|
version = "1.0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cr0hn";
|
|
repo = pname;
|
|
rev = "5a59e86f8c5672d2cc97dd35dc730c2f809d95ce"; # corresponds to 1.0.5 on PyPi, no tag on GitHub
|
|
sha256 = "1vpfk5b3f7s9qzr2q48g776f39xzqppjwm57scfzqqmbldkk5nv7";
|
|
};
|
|
|
|
propagatedBuildInputs = [ aiohttp jinja2 pyyaml ];
|
|
|
|
checkInputs = [ flake8 pytestCheckHook pytest-aiohttp ];
|
|
|
|
meta = with lib; {
|
|
description = "Swagger API Documentation builder for aiohttp";
|
|
homepage = "https://github.com/cr0hn/aiohttp-swagger";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
};
|
|
}
|