64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
|
{
|
||
|
lib,
|
||
|
aniso8601,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
setuptools,
|
||
|
graphql-core,
|
||
|
graphql-relay,
|
||
|
pytest-asyncio,
|
||
|
pytest-benchmark,
|
||
|
pytest-mock,
|
||
|
pytest7CheckHook,
|
||
|
pythonOlder,
|
||
|
pytz,
|
||
|
snapshottest,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "graphene";
|
||
|
version = "3.3.0";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.6";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "graphql-python";
|
||
|
repo = "graphene";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-DGxicCXZp9kW/OFkr0lAWaQ+GaECx+HD8+X4aW63vgQ=";
|
||
|
};
|
||
|
|
||
|
build-system = [ setuptools ];
|
||
|
|
||
|
dependencies = [
|
||
|
aniso8601
|
||
|
graphql-core
|
||
|
graphql-relay
|
||
|
];
|
||
|
|
||
|
# snaphottest->fastdiff->wasmer dependency chain does not support 3.12.
|
||
|
doCheck = pythonOlder "3.12";
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
pytest7CheckHook
|
||
|
pytest-asyncio
|
||
|
pytest-benchmark
|
||
|
pytest-mock
|
||
|
pytz
|
||
|
snapshottest
|
||
|
];
|
||
|
|
||
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
||
|
|
||
|
pythonImportsCheck = [ "graphene" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "GraphQL Framework for Python";
|
||
|
homepage = "https://github.com/graphql-python/graphene";
|
||
|
changelog = "https://github.com/graphql-python/graphene/releases/tag/v${version}";
|
||
|
license = licenses.mit;
|
||
|
maintainers = [ ];
|
||
|
};
|
||
|
}
|