depot/third_party/nixpkgs/pkgs/development/python-modules/django-stubs-ext/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

43 lines
925 B
Nix

{
lib,
buildPythonPackage,
django,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "django-stubs-ext";
version = "5.0.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "django_stubs_ext";
inherit version;
hash = "sha256-QJxiWF1/mWzvXHYObifqP/KflhyUN0fmdRnIN0IsrTI=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
django
typing-extensions
];
nativeCheckInputs = [ pytestCheckHook ];
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 ];
};
}