Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 57 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ 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 = [ ]; };}