blob: ac91b749070de6ddb70186da9d3edff49125bfc2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build
, poetry-core
# runtime
, graphql-core
, typing-extensions
# tests
, pytest-asyncio
, pytest-describe
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "graphql-relay";
version = "3.2.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-H/HFEpg1bkgaC+AJzN/ySYMs5T8wVZwTOPIqDg0XJQw=";
};
# This project doesn't seem to actually need setuptools. To find out why it
# specifies it, follow up in:
#
# https://github.com/graphql-python/graphql-relay-py/issues/49
#
postPatch = ''
substituteInPlace pyproject.toml \
--replace ', "setuptools>=59,<70"' ""
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
graphql-core
] ++ lib.optionals (pythonOlder "3.8") [
typing-extensions
];
nativeCheckInputs = [
pytest-asyncio
pytest-describe
pytestCheckHook
];
pythonImportsCheck = [ "graphql_relay" ];
meta = with lib; {
description = "A library to help construct a graphql-py server supporting react-relay";
homepage = "https://github.com/graphql-python/graphql-relay-py/";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}
|