2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aniso8601,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
graphql-core,
|
|
|
|
graphql-relay,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-benchmark,
|
|
|
|
pytest-mock,
|
|
|
|
pytest7CheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pytz,
|
|
|
|
snapshottest,
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphene";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "3.3.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "graphql-python";
|
|
|
|
repo = "graphene";
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-DGxicCXZp9kW/OFkr0lAWaQ+GaECx+HD8+X4aW63vgQ=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2021-01-09 10:05:03 +00:00
|
|
|
aniso8601
|
|
|
|
graphql-core
|
|
|
|
graphql-relay
|
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
# snaphottest->fastdiff->wasmer dependency chain does not support 3.12.
|
|
|
|
doCheck = pythonOlder "3.12";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
pytest7CheckHook
|
2021-01-09 10:05:03 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-mock
|
|
|
|
pytz
|
|
|
|
snapshottest
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "graphene" ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GraphQL Framework for Python";
|
|
|
|
homepage = "https://github.com/graphql-python/graphene";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/graphql-python/graphene/releases/tag/v${version}";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
}
|