2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
# build
|
|
|
|
, poetry-core
|
|
|
|
|
|
|
|
# runtime
|
2021-03-09 03:18:52 +00:00
|
|
|
, graphql-core
|
2022-04-27 09:35:20 +00:00
|
|
|
, typing-extensions
|
|
|
|
|
|
|
|
# tests
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytest-asyncio
|
2022-04-27 09:35:20 +00:00
|
|
|
, pytest-describe
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphql-relay";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "3.2.0";
|
|
|
|
format = "pyproject";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-H/HFEpg1bkgaC+AJzN/ySYMs5T8wVZwTOPIqDg0XJQw=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
graphql-core
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
typing-extensions
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
2022-04-27 09:35:20 +00:00
|
|
|
pytest-describe
|
2021-03-09 03:18:52 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
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; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|