2021-02-27 11:46:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, graphql-core
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
2021-01-04 09:50:31 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphql-relay";
|
2021-02-27 11:46:38 +00:00
|
|
|
version = "3.1.0";
|
2021-01-04 09:50:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-27 11:46:38 +00:00
|
|
|
sha256 = "sha256-cNWn7lmV6nwqmjflEidmOxpGTx9A6Y/d6VC+VBXf4LQ=";
|
2021-01-04 09:50:31 +00:00
|
|
|
};
|
|
|
|
|
2021-02-27 11:46:38 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
graphql-core
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
typing-extensions
|
|
|
|
];
|
2021-01-04 09:50:31 +00:00
|
|
|
|
2021-02-27 11:46:38 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-04 09:50:31 +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 ];
|
|
|
|
};
|
|
|
|
}
|