diff --git a/pkgs/development/python-modules/djangorestframework/default.nix b/pkgs/development/python-modules/djangorestframework/default.nix index e9668a27c1c7..60e5760b5244 100644 --- a/pkgs/development/python-modules/djangorestframework/default.nix +++ b/pkgs/development/python-modules/djangorestframework/default.nix @@ -1,7 +1,9 @@ -{ stdenv, buildPythonPackage, fetchPypi, django }: +{ stdenv, buildPythonPackage, fetchPypi, django, isPy27 }: + buildPythonPackage rec { version = "3.11.0"; pname = "djangorestframework"; + disabled = isPy27; src = fetchPypi { inherit pname version;