nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 apispec,
5 buildPythonPackage,
6 fetchFromGitHub,
7 jinja2,
8 packaging,
9 pytest-aiohttp,
10 pytestCheckHook,
11 setuptools,
12 webargs,
13}:
14
15buildPythonPackage rec {
16 pname = "aiohttp-apispec";
17 version = "3.0.0b2";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "maximdanilchenko";
22 repo = "aiohttp-apispec";
23 tag = "v${version}";
24 hash = "sha256-C+/M25oCLTNGGEUj2EyXn3UjcvPvDYFmmUW8IOoF1uU=";
25 };
26
27 doCheck = false;
28
29 /*
30 postPatch = ''
31 substituteInPlace tests/conftest.py \
32 --replace-fail 'aiohttp_app(loop,' 'aiohttp_app(event_loop,' \
33 --replace-fail 'return loop.run_until_complete' 'return event_loop.run_until_complete'
34 '';
35 */
36
37 build-system = [ setuptools ];
38
39 dependencies = [
40 aiohttp
41 apispec
42 jinja2
43 packaging
44 webargs
45 ];
46
47 nativeCheckInputs = [
48 pytest-aiohttp
49 pytestCheckHook
50 ];
51
52 pythonImportsCheck = [ "aiohttp_apispec" ];
53
54 meta = {
55 description = "Build and document REST APIs with aiohttp and apispec";
56 homepage = "https://github.com/maximdanilchenko/aiohttp-apispec/";
57 license = lib.licenses.mit;
58 maintainers = [ ];
59 };
60}