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