23 buildPythonPackage rec {
24 pname = "graphene-django";
26 format = "setuptools";
28 disabled = pythonOlder "3.6";
30 src = fetchFromGitHub {
31 owner = "graphql-python";
33 rev = "refs/tags/v${version}";
34 hash = "sha256-1vl1Yj9MVBej5aFND8A63JMIog8aIW9SdwiOLIUwXxI=";
38 substituteInPlace setup.py \
39 --replace '"pytest-runner"' ""
42 propagatedBuildInputs = [
52 export DJANGO_SETTINGS_MODULE=examples.django_test_settings
64 disabledTests = lib.optionals (pythonAtLeast "3.11") [
65 # Python 3.11 support, https://github.com/graphql-python/graphene-django/pull/1365
66 "test_django_objecttype_convert_choices_enum_naming_collisions"
67 "test_django_objecttype_choices_custom_enum_name"
68 "test_django_objecttype_convert_choices_enum_list"
69 "test_schema_representation"
70 ] ++ lib.optionals stdenv.isDarwin [
71 # this test touches files in the "/" directory and fails in darwin sandbox
72 "test_should_filepath_convert_string"
76 description = "Integrate GraphQL into your Django project";
77 homepage = "https://github.com/graphql-python/graphene-django";
78 changelog = "https://github.com/graphql-python/graphene-django/releases/tag/v${version}";
79 license = licenses.mit;
80 maintainers = with maintainers; [ hexa ];