From 30e8cd34f54985f93e25af170fcb800e47ac8524 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 5 Aug 2025 04:37:51 +0200 Subject: [PATCH] python3Packages.django-stubs-ext: 5.2.0 -> 5.2.2 https://github.com/typeddjango/django-stubs/releases/tag/5.2.2 This commit was automatically generated using update-python-libraries. --- .../django-stubs-ext/default.nix | 38 +++++++++++++------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/django-stubs-ext/default.nix b/pkgs/development/python-modules/django-stubs-ext/default.nix index 40464d29fcff..1931b9f6b6c5 100644 --- a/pkgs/development/python-modules/django-stubs-ext/default.nix +++ b/pkgs/development/python-modules/django-stubs-ext/default.nix @@ -2,29 +2,34 @@ lib, buildPythonPackage, django, - fetchPypi, + fetchFromGitHub, + hatchling, oracledb, + pytest-mypy-plugins, + pytest-xdist, pytestCheckHook, - pythonOlder, redis, - setuptools, typing-extensions, }: buildPythonPackage rec { pname = "django-stubs-ext"; - version = "5.2.0"; + version = "5.2.2"; pyproject = true; - disabled = pythonOlder "3.10"; - - src = fetchPypi { - pname = "django_stubs_ext"; - inherit version; - hash = "sha256-AMSuMHtTj1ZDr3YakUw/jk4/JfTnxtcJjxkGwNjyqsk="; + src = fetchFromGitHub { + owner = "typeddjango"; + repo = "django-stubs"; + tag = version; + hash = "sha256-kF5g0/rkMQxYTfSrTqzZ6BuqGlE42K/AVhc1/ARc+/c="; }; - build-system = [ setuptools ]; + postPatch = '' + cd ext + ln -s ../scripts + ''; + + build-system = [ hatchling ]; dependencies = [ django @@ -36,7 +41,16 @@ buildPythonPackage rec { oracle = [ oracledb ]; }; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytest-mypy-plugins + pytest-xdist + pytestCheckHook + ]; + + disabledTestPaths = [ + # error: Skipping analyzing "django.db": module is installed, but missing library stubs or py.typed marker [import-untyped] (diff) + "tests/typecheck" + ]; pythonImportsCheck = [ "django_stubs_ext" ];