1{ lib, buildPythonPackage, fetchFromGitHub 2, django, requests, oauthlib 3}: 4 5buildPythonPackage rec { 6 pname = "django-oauth-toolkit"; 7 version = "1.2.0"; 8 9 src = fetchFromGitHub { 10 owner = "jazzband"; 11 repo = pname; 12 rev = version; 13 sha256 = "1zbksxrcxlqnapmlvx4rgvpqc4plgnq0xnf45cjwzwi1626zs8g6"; 14 }; 15 16 propagatedBuildInputs = [ django requests oauthlib ]; 17 18 # django.core.exceptions.ImproperlyConfigured: Requested setting OAUTH2_PROVIDER, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings 19 doCheck = false; 20 21 meta = with lib; { 22 description = "OAuth2 goodies for the Djangonauts"; 23 homepage = "https://github.com/jazzband/django-oauth-toolkit"; 24 license = licenses.bsd2; 25 maintainers = with maintainers; [ mmai ]; 26 }; 27}