75ca762b89
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
39 lines
821 B
Nix
39 lines
821 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, graphql-core
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "graphql-relay";
|
|
version = "3.1.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-cNWn7lmV6nwqmjflEidmOxpGTx9A6Y/d6VC+VBXf4LQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
graphql-core
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
typing-extensions
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
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; [ SuperSandro2000 ];
|
|
};
|
|
}
|