diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-10-11 22:18:36 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-11-02 18:31:39 +0100 |
commit | b551e68ad45b1de41ddc49e7704b73bd34cfd427 (patch) | |
tree | 82bd87d3a1f7428faa90e2e04dfe4901a61ab2fc /pkgs/development/python-modules/django-graphiql-debug-toolbar | |
parent | 2a258f0692183b69c45302213f3dbb761f4fa0e4 (diff) |
python3Packages.django-graphiql-debug-toolbar: init at 0.2.0
Diffstat (limited to 'pkgs/development/python-modules/django-graphiql-debug-toolbar')
-rw-r--r-- | pkgs/development/python-modules/django-graphiql-debug-toolbar/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/django-graphiql-debug-toolbar/default.nix b/pkgs/development/python-modules/django-graphiql-debug-toolbar/default.nix new file mode 100644 index 0000000000000..26a82254a7a67 --- /dev/null +++ b/pkgs/development/python-modules/django-graphiql-debug-toolbar/default.nix @@ -0,0 +1,55 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, poetry-core +, django +, django-debug-toolbar +, graphene-django +, python +}: + +buildPythonPackage rec { + pname = "django-graphiql-debug-toolbar"; + version = "0.2.0"; + format = "pyproject"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "flavors"; + repo = pname; + rev = version; + sha256 = "0fikr7xl786jqfkjdifymqpqnxy4qj8g3nlkgfm24wwq0za719dw"; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + django + django-debug-toolbar + graphene-django + ]; + + pythonImportsCheck = [ + "graphiql_debug_toolbar" + ]; + + DB_BACKEND = "sqlite"; + DB_NAME = ":memory:"; + DJANGO_SETTINGS_MODULE = "tests.settings"; + + checkPhase = '' + runHook preCheck + ${python.interpreter} -m django test tests + runHook postCheck + ''; + + meta = with lib; { + description = "Django Debug Toolbar for GraphiQL IDE"; + homepage = "https://github.com/flavors/django-graphiql-debug-toolbar"; + license = licenses.mit; + maintainers = with maintainers; [ hexa ]; + }; +} |