diff --git a/pkgs/development/python-modules/django-extensions/default.nix b/pkgs/development/python-modules/django-extensions/default.nix index ecf400b21d86..455eeebddde0 100644 --- a/pkgs/development/python-modules/django-extensions/default.nix +++ b/pkgs/development/python-modules/django-extensions/default.nix @@ -18,13 +18,13 @@ buildPythonPackage rec { pname = "django-extensions"; - version = "3.0.8"; + version = "3.1.0"; src = fetchFromGitHub { owner = pname; repo = pname; rev = version; - sha256 = "1z2si9wpc8irqhi5i2wp4wr05dqxyw4mn2vj3amp0rvsvydws92c"; + sha256 = "hZ6GS2VkXH8KfKZuL1rR6JS/nDkx8SfKuUx5XrvTbec="; }; LC_ALL = "en_US.UTF-8"; @@ -49,10 +49,11 @@ buildPythonPackage rec { werkzeug ]; - # tests not compatible with pip>=20 + # remove tests that need network access checkPhase = '' rm tests/management/commands/test_pipchecker.py - ${python.interpreter} setup.py test + DJANGO_SETTINGS_MODULE=tests.testapp.settings \ + pytest django_extensions tests ''; meta = with lib; {