14 # optional-dependencies
28 buildPythonPackage rec {
29 pname = "djangorestframework";
32 disabled = pythonOlder "3.6";
34 src = fetchFromGitHub {
36 repo = "django-rest-framework";
38 hash = "sha256-ne0sk4m11Ha77tNmCsdhj7QVmCkYj5GjLn/dLF4qxU8=";
41 build-system = [ setuptools ];
46 ] ++ (lib.optional (lib.versionOlder django.version "5.0.0") pytz);
48 optional-dependencies = {
63 ] ++ optional-dependencies.complete;
66 # https://github.com/encode/django-rest-framework/issues/9422
70 pythonImportsCheck = [ "rest_framework" ];
73 changelog = "https://github.com/encode/django-rest-framework/releases/tag/3.15.1";
74 description = "Web APIs for Django, made easy";
75 homepage = "https://www.django-rest-framework.org/";
76 maintainers = with maintainers; [ desiderius ];
77 license = licenses.bsd2;