blob: a007d735ca6687a6483bc73d0d2e334a2d536b75 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchPypi,
# build
poetry-core,
# runtime
graphql-core,
# tests
pytest-asyncio,
pytest-describe,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "graphql-relay";
version = "3.2.0";
pyproject = true;
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-fail "poetry_core>=1,<2" "poetry-core" \
--replace ', "setuptools>=59,<70"' ""
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ graphql-core ];
nativeCheckInputs = [
pytest-asyncio
pytest-describe
pytestCheckHook
];
pythonImportsCheck = [ "graphql_relay" ];
meta = {
description = "Library to help construct a graphql-py server supporting react-relay";
homepage = "https://github.com/graphql-python/graphql-relay-py/";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|