From 9a8d6afb354aeb3d2462b8102c6237bbbd923264 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 30 Apr 2023 23:14:14 +0200 Subject: [PATCH] python310Packages.django-stubs-ext: 0.8.0 -> 4.2.0 --- .../django-stubs-ext/default.nix | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) 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";