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