Files
nixpkgs/pkgs/development/python-modules/django-stubs/default.nix
T
Martin Weinelt 5ab327a820 python3Packages.django-stubs: 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.
2025-08-09 18:59:09 +02:00

70 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
django,
django-stubs-ext,
fetchFromGitHub,
mypy,
pytest-mypy-plugins,
pytestCheckHook,
pythonOlder,
hatchling,
tomli,
types-pytz,
types-pyyaml,
typing-extensions,
}:
buildPythonPackage rec {
pname = "django-stubs";
version = "5.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "typeddjango";
repo = "django-stubs";
tag = version;
hash = "sha256-kF5g0/rkMQxYTfSrTqzZ6BuqGlE42K/AVhc1/ARc+/c=";
};
build-system = [ hatchling ];
dependencies = [
django
django-stubs-ext
types-pytz
types-pyyaml
typing-extensions
]
++ lib.optionals (pythonOlder "3.11") [ tomli ];
optional-dependencies = {
compatible-mypy = [ mypy ];
};
nativeCheckInputs = [
pytest-mypy-plugins
pytestCheckHook
]
++ lib.flatten (lib.attrValues optional-dependencies);
disabledTests = [
# AttributeError: module 'django.contrib.auth.forms' has no attribute 'SetUnusablePasswordMixin'
"test_find_classes_inheriting_from_generic"
];
disabledTestPaths = [
"tests/typecheck"
];
pythonImportsCheck = [ "django-stubs" ];
meta = with lib; {
description = "PEP-484 stubs for Django";
homepage = "https://github.com/typeddjango/django-stubs";
changelog = "https://github.com/typeddjango/django-stubs/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ elohmeier ];
};
}