1{
2 lib,
3 buildPythonPackage,
4 django,
5 fetchPypi,
6 oracledb,
7 pytestCheckHook,
8 pythonOlder,
9 redis,
10 setuptools,
11 typing-extensions,
12}:
13
14buildPythonPackage rec {
15 pname = "django-stubs-ext";
16 version = "5.2.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.10";
20
21 src = fetchPypi {
22 pname = "django_stubs_ext";
23 inherit version;
24 hash = "sha256-AMSuMHtTj1ZDr3YakUw/jk4/JfTnxtcJjxkGwNjyqsk=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 django
31 typing-extensions
32 ];
33
34 optional-dependencies = {
35 redis = [ redis ];
36 oracle = [ oracledb ];
37 };
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 pythonImportsCheck = [ "django_stubs_ext" ];
42
43 meta = with lib; {
44 description = "Extensions and monkey-patching for django-stubs";
45 homepage = "https://github.com/typeddjango/django-stubs";
46 changelog = "https://github.com/typeddjango/django-stubs/releases/tag/${version}";
47 license = licenses.mit;
48 maintainers = with maintainers; [ elohmeier ];
49 };
50}