Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 59 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, aiohttp, apispec, buildPythonPackage, fetchFromGitHub, jinja2, packaging, pytest-aiohttp, pytestCheckHook, pythonOlder, setuptools, webargs,}:
buildPythonPackage rec { pname = "aiohttp-apispec"; version = "3.0.0b2"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "maximdanilchenko"; repo = "aiohttp-apispec"; tag = "v${version}"; hash = "sha256-C+/M25oCLTNGGEUj2EyXn3UjcvPvDYFmmUW8IOoF1uU="; };
postPatch = '' substituteInPlace tests/conftest.py \ --replace-fail 'aiohttp_app(loop,' 'aiohttp_app(event_loop,' \ --replace-fail 'return loop.run_until_complete' 'return event_loop.run_until_complete' '';
build-system = [ setuptools ];
dependencies = [ 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 = [ ]; };}