Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 78 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ stdenv, lib, buildPythonPackage, fetchFromGitHub,
graphene, graphql-core, django, djangorestframework, promise, text-unidecode,
django-filter, mock, py, pytest-django, pytest-random-order, pytest7CheckHook,}:
buildPythonPackage rec { pname = "graphene-django"; version = "3.2.3"; format = "setuptools";
src = fetchFromGitHub { owner = "graphql-python"; repo = "graphene-django"; tag = "v${version}"; hash = "sha256-uMkzgXn3YRgEU46Sv5lg60cvetHir9bv0mzJGDv79DI="; };
postPatch = '' substituteInPlace setup.py \ --replace '"pytest-runner"' "" '';
propagatedBuildInputs = [ djangorestframework graphene graphql-core django promise text-unidecode ];
preCheck = '' export DJANGO_SETTINGS_MODULE=examples.django_test_settings '';
nativeCheckInputs = [ django-filter mock py pytest-django pytest-random-order pytest7CheckHook ];
disabledTests = lib.optionals (lib.versionAtLeast django.version "6.0") [ "test_global_id_field_explicit" "test_global_id_field_implicit" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # this test touches files in the "/" directory and fails in darwin sandbox "test_should_filepath_convert_string" ];
meta = { description = "Integrate GraphQL into your Django project"; homepage = "https://github.com/graphql-python/graphene-django"; changelog = "https://github.com/graphql-python/graphene-django/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hexa ]; };}