1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytest-benchmark
5, pytest-asyncio
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "graphql-core";
12 version = "3.2.3";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "graphql-python";
19 repo = pname;
20 rev = "refs/tags/v${version}";
21 hash = "sha256-LtBbHA5r6/YNh2gKX0+NqQjrpKuMioyOYWT0R59SIL4=";
22 };
23
24 checkInputs = [
25 pytest-asyncio
26 pytest-benchmark
27 pytestCheckHook
28 ];
29
30 pythonImportsCheck = [
31 "graphql"
32 ];
33
34 meta = with lib; {
35 description = "Port of graphql-js to Python";
36 homepage = "https://github.com/graphql-python/graphql-core";
37 license = licenses.mit;
38 maintainers = with maintainers; [ kamadorueda ];
39 };
40}