Files
nixpkgs/pkgs/development/python-modules/django-stubs-ext/default.nix
T
Martin Weinelt 98214d19e0 Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/development/python-modules/django-stubs-ext/default.nix
	pkgs/development/python-modules/django-stubs/default.nix
	pkgs/development/python-modules/python-roborock/default.nix
2025-08-10 14:46:08 +02:00

67 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
hatchling,
oracledb,
pytest-mypy-plugins,
pytest-xdist,
pytestCheckHook,
redis,
typing-extensions,
}:
buildPythonPackage rec {
pname = "django-stubs-ext";
version = "5.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "typeddjango";
repo = "django-stubs";
tag = version;
hash = "sha256-kF5g0/rkMQxYTfSrTqzZ6BuqGlE42K/AVhc1/ARc+/c=";
};
postPatch = ''
cd ext
ln -s ../scripts
'';
build-system = [ hatchling ];
dependencies = [
django
typing-extensions
];
optional-dependencies = {
redis = [ redis ];
oracle = [ oracledb ];
};
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"
];
# Tests are not shipped with PyPI
pythonImportsCheck = [ "django_stubs_ext" ];
meta = with lib; {
description = "Extensions and monkey-patching for django-stubs";
homepage = "https://github.com/typeddjango/django-stubs";
changelog = "https://github.com/typeddjango/django-stubs/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ elohmeier ];
};
}