1{ lib
2, buildPythonPackage
3, fetchPypi
4, graphql-core
5, pytest-asyncio
6, pytestCheckHook
7, pythonOlder
8, typing-extensions
9}:
10
11buildPythonPackage rec {
12 pname = "graphql-relay";
13 version = "3.1.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-cNWn7lmV6nwqmjflEidmOxpGTx9A6Y/d6VC+VBXf4LQ=";
18 };
19
20 propagatedBuildInputs = [
21 graphql-core
22 ] ++ lib.optionals (pythonOlder "3.8") [
23 typing-extensions
24 ];
25
26 checkInputs = [
27 pytest-asyncio
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [ "graphql_relay" ];
32
33 meta = with lib; {
34 description = "A library to help construct a graphql-py server supporting react-relay";
35 homepage = "https://github.com/graphql-python/graphql-relay-py/";
36 license = licenses.mit;
37 maintainers = with maintainers; [ SuperSandro2000 ];
38 };
39}