1{ lib
2, aniso8601
3, buildPythonPackage
4, fetchFromGitHub
5, graphql-core
6, graphql-relay
7, promise
8, py
9, pytest-asyncio
10, pytest-benchmark
11, pytest-mock
12, pytestCheckHook
13, pythonAtLeast
14, pythonOlder
15, pytz
16, snapshottest
17}:
18
19buildPythonPackage rec {
20 pname = "graphene";
21 version = "3.2.2";
22 format = "setuptools";
23
24 disabled = pythonOlder "3.6";
25
26 src = fetchFromGitHub {
27 owner = "graphql-python";
28 repo = "graphene";
29 rev = "refs/tags/v${version}";
30 hash = "sha256-kwF6oXp06w7r1PbPoJTCQ9teTExYMoqvIZDhtv5QNn8=";
31 };
32
33 propagatedBuildInputs = [
34 aniso8601
35 graphql-core
36 graphql-relay
37 ];
38
39 nativeCheckInputs = [
40 promise
41 py
42 pytestCheckHook
43 pytest-asyncio
44 pytest-benchmark
45 pytest-mock
46 pytz
47 snapshottest
48 ];
49
50 pytestFlagsArray = [
51 "--benchmark-disable"
52 ];
53
54 pythonImportsCheck = [
55 "graphene"
56 ];
57
58 meta = with lib; {
59 description = "GraphQL Framework for Python";
60 homepage = "https://github.com/graphql-python/graphene";
61 changelog = "https://github.com/graphql-python/graphene/releases/tag/v${version}";
62 license = licenses.mit;
63 maintainers = with maintainers; [ SuperSandro2000 ];
64 };
65}