diff --git a/pkgs/development/python-modules/django-stubs-ext/default.nix b/pkgs/development/python-modules/django-stubs-ext/default.nix index db5dc9c91583..296e394953fc 100644 --- a/pkgs/development/python-modules/django-stubs-ext/default.nix +++ b/pkgs/development/python-modules/django-stubs-ext/default.nix @@ -1,18 +1,39 @@ -{ buildPythonPackage, django, fetchPypi, lib, typing-extensions }: +{ lib +, buildPythonPackage +, django +, fetchPypi +, pytestCheckHook +, pythonOlder +, typing-extensions +}: buildPythonPackage rec { pname = "django-stubs-ext"; - version = "0.8.0"; + version = "4.2.0"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-mpup4oCHN5Sd6WoPzosFTxLTjkYQEdd+vAdP/oxD38s="; + hash = "sha256-d4nwyuynFS/vB61rlN7HMQoF0Ljat395eeGdsAN7USc="; }; # setup.cfg tries to pull in nonexistent LICENSE.txt file postPatch = "rm setup.cfg"; - propagatedBuildInputs = [ django typing-extensions ]; + propagatedBuildInputs = [ + django + typing-extensions + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "django_stubs_ext" + ]; meta = with lib; { description = "Extensions and monkey-patching for django-stubs";