Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ lib, buildPythonPackage, fetchFromGitHub, setuptools,
# propagates django, jwcrypto, oauthlib, requests, urllib3,
# tests django-ninja, djangorestframework, pytest-cov-stub, pytest-django_4_12, pytest-mock, pytest-xdist, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "django-oauth-toolkit"; version = "3.4.1"; pyproject = true;
src = fetchFromGitHub { owner = "jazzband"; repo = "django-oauth-toolkit"; tag = finalAttrs.version; hash = "sha256-UsnfGOyVk5w0grG6cTgMmfo+HyrZtsER338YobLyk08="; };
build-system = [ setuptools ];
dependencies = [ django jwcrypto oauthlib requests urllib3 ];
preCheck = '' export DJANGO_SETTINGS_MODULE=tests.settings # See below about xdist substituteInPlace pyproject.toml \ --replace-fail ' "-n", "auto",' "" \ --replace-fail ' "--dist", "loadfile",' "" '';
nativeCheckInputs = [ django-ninja djangorestframework pytest-cov-stub pytest-django_4_12 django-ninja # pytest-xdist pytest-mock pytest-xdist pytestCheckHook ];
disabledTests = [ # Failed to get a valid response from authentication server. Status code: 404, Reason: Not Found. "test_response_when_auth_server_response_return_404" ];
meta = { description = "OAuth2 goodies for the Djangonauts"; homepage = "https://github.com/jazzband/django-oauth-toolkit"; changelog = "https://github.com/jazzband/django-oauth-toolkit/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.bsd2; maintainers = [ ]; };})