Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 70 lines
Nix
at llvm-cleanup
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ lib, buildPythonPackage, fetchFromGitHub, pythonRelaxDepsHook,
# propagates django, jwcrypto, requests, oauthlib,
# tests djangorestframework, pytest-django, pytest-xdist, pytest-mock, pytestCheckHook,}:
buildPythonPackage rec { pname = "django-oauth-toolkit"; version = "2.4.0"; format = "setuptools";
src = fetchFromGitHub { owner = "jazzband"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-nfLjjVp+6OsjFdJHUZ2gzZic/E/sCklj+YeFyb/EZdw="; };
postPatch = '' sed -i '/cov/d' tox.ini '';
propagatedBuildInputs = [ django jwcrypto oauthlib requests ];
nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRelaxDeps = [ "django" ];
DJANGO_SETTINGS_MODULE = "tests.settings";
# xdist is disabled right now because it can cause race conditions on high core machines # https://github.com/jazzband/django-oauth-toolkit/issues/1300 nativeCheckInputs = [ djangorestframework pytest-django # pytest-xdist pytest-mock 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 = with lib; { description = "OAuth2 goodies for the Djangonauts"; homepage = "https://github.com/jazzband/django-oauth-toolkit"; license = licenses.bsd2; maintainers = with maintainers; [ mmai ]; };}