1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, aniso8601
5, graphql-core
6, graphql-relay
7, promise
8, pytestCheckHook
9, pytest-asyncio
10, pytest-benchmark
11, pytest-mock
12, pytz
13, snapshottest
14}:
15
16buildPythonPackage rec {
17 pname = "graphene";
18 version = "3.0.0b8";
19
20 src = fetchFromGitHub {
21 owner = "graphql-python";
22 repo = "graphene";
23 rev = "v${version}";
24 sha256 = "sha256-Pgln369s4qXdKqLxhX+AkgpDQm+MfSZ/OVmB1AaawHI=";
25 };
26
27 propagatedBuildInputs = [
28 aniso8601
29 graphql-core
30 graphql-relay
31 ];
32
33 checkInputs = [
34 promise
35 pytestCheckHook
36 pytest-asyncio
37 pytest-benchmark
38 pytest-mock
39 pytz
40 snapshottest
41 ];
42
43 pytestFlagsArray = [ "--benchmark-disable" ];
44
45 disabledTests = [
46 # Expects different Exeception classes, but receives none of them
47 # https://github.com/graphql-python/graphene/issues/1346
48 "test_unexpected_error"
49 ];
50
51 pythonImportsCheck = [ "graphene" ];
52
53 meta = with lib; {
54 description = "GraphQL Framework for Python";
55 homepage = "https://github.com/graphql-python/graphene";
56 license = licenses.mit;
57 maintainers = with maintainers; [ SuperSandro2000 ];
58 };
59}