1{ 2 lib, 3 aiohttp, 4 apispec, 5 buildPythonPackage, 6 callPackage, 7 fetchFromGitHub, 8 fetchPypi, 9 jinja2, 10 packaging, 11 pytest-aiohttp, 12 pytestCheckHook, 13 pythonOlder, 14 webargs, 15}: 16 17buildPythonPackage rec { 18 pname = "aiohttp-apispec"; 19 version = "3.0.0b2"; 20 format = "setuptools"; 21 22 disabled = pythonOlder "3.6"; 23 24 src = fetchFromGitHub { 25 owner = "maximdanilchenko"; 26 repo = pname; 27 rev = "v${version}"; 28 hash = "sha256-C+/M25oCLTNGGEUj2EyXn3UjcvPvDYFmmUW8IOoF1uU="; 29 }; 30 31 propagatedBuildInputs = [ 32 aiohttp 33 apispec 34 jinja2 35 packaging 36 webargs 37 ]; 38 39 nativeCheckInputs = [ 40 pytest-aiohttp 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ "aiohttp_apispec" ]; 45 46 meta = with lib; { 47 description = "Build and document REST APIs with aiohttp and apispec"; 48 homepage = "https://github.com/maximdanilchenko/aiohttp-apispec/"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ viric ]; 51 }; 52}