1{ lib
2, buildPythonPackage
3, django
4, fetchPypi
5, pytestCheckHook
6, pythonOlder
7, typing-extensions
8}:
9
10buildPythonPackage rec {
11 pname = "django-stubs-ext";
12 version = "4.2.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-d4nwyuynFS/vB61rlN7HMQoF0Ljat395eeGdsAN7USc=";
20 };
21
22 # setup.cfg tries to pull in nonexistent LICENSE.txt file
23 postPatch = "rm setup.cfg";
24
25 propagatedBuildInputs = [
26 django
27 typing-extensions
28 ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [
35 "django_stubs_ext"
36 ];
37
38 meta = with lib; {
39 description = "Extensions and monkey-patching for django-stubs";
40 homepage = "https://github.com/typeddjango/django-stubs";
41 license = licenses.mit;
42 maintainers = with maintainers; [ elohmeier ];
43 };
44}