657f08b14c
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
50 lines
1,016 B
Nix
50 lines
1,016 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
django,
|
|
fetchPypi,
|
|
oracledb,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
redis,
|
|
setuptools,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-stubs-ext";
|
|
version = "5.1.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
pname = "django_stubs_ext";
|
|
inherit version;
|
|
hash = "sha256-23Nk5PUK5+U2CZPb1Yo6V+pLLn5bqw+9UlzNs+eXXRw=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
django
|
|
typing-extensions
|
|
];
|
|
|
|
optional-dependencies = {
|
|
redis = [ redis ];
|
|
oracle = [ oracledb ];
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|