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