2021-01-04 12:42:44 +03:00
|
|
|
{ lib
|
2022-02-08 13:25:26 +03:00
|
|
|
, aniso8601
|
2021-01-04 12:42:44 +03:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, graphql-core
|
|
|
|
, graphql-relay
|
2021-02-11 05:56:40 +03:00
|
|
|
, promise
|
2022-12-31 17:36:15 +03:00
|
|
|
, py
|
2021-01-04 12:42:44 +03:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytest-mock
|
2022-02-08 13:25:26 +03:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonAtLeast
|
|
|
|
, pythonOlder
|
2021-01-04 12:42:44 +03:00
|
|
|
, pytz
|
|
|
|
, snapshottest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphene";
|
2023-04-28 11:59:24 +03:00
|
|
|
version = "3.2.2";
|
2022-02-08 13:25:26 +03:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-06-01 23:18:33 +03:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-01-04 12:42:44 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "graphql-python";
|
|
|
|
repo = "graphene";
|
2022-09-09 09:26:26 +03:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-28 11:59:24 +03:00
|
|
|
hash = "sha256-kwF6oXp06w7r1PbPoJTCQ9teTExYMoqvIZDhtv5QNn8=";
|
2021-01-04 12:42:44 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aniso8601
|
|
|
|
graphql-core
|
|
|
|
graphql-relay
|
|
|
|
];
|
|
|
|
|
2023-01-21 15:00:00 +03:00
|
|
|
nativeCheckInputs = [
|
2021-02-11 05:56:40 +03:00
|
|
|
promise
|
2022-12-31 17:36:15 +03:00
|
|
|
py
|
2021-01-04 12:42:44 +03:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-mock
|
|
|
|
pytz
|
|
|
|
snapshottest
|
|
|
|
];
|
|
|
|
|
2022-02-08 13:25:26 +03:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"--benchmark-disable"
|
|
|
|
];
|
2021-02-11 05:56:40 +03:00
|
|
|
|
2022-02-08 13:25:26 +03:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"graphene"
|
|
|
|
];
|
2021-01-04 12:42:44 +03:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GraphQL Framework for Python";
|
|
|
|
homepage = "https://github.com/graphql-python/graphene";
|
2022-12-11 19:37:11 +03:00
|
|
|
changelog = "https://github.com/graphql-python/graphene/releases/tag/v${version}";
|
2021-01-04 12:42:44 +03:00
|
|
|
license = licenses.mit;
|
2023-07-23 20:30:22 +03:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-01-04 12:42:44 +03:00
|
|
|
};
|
|
|
|
}
|