1{ lib
2, buildPythonPackage
3, django-stubs
4, fetchFromGitHub
5, mypy
6, py
7, pytest-mypy-plugins
8, pytestCheckHook
9, pythonOlder
10, requests
11, types-pyyaml
12, types-requests
13, typing-extensions
14}:
15
16buildPythonPackage rec {
17 pname = "djangorestframework-stubs";
18 version = "3.14.2";
19 format = "setuptools";
20
21 disabled = pythonOlder "3.8";
22
23 src = fetchFromGitHub {
24 owner = "typeddjango";
25 repo = "djangorestframework-stubs";
26 rev = version;
27 hash = "sha256-T357ocJvDC+vt0I4VyAu0Q9YzY9cSK7shgp9fQ1qHyY=";
28 };
29
30 propagatedBuildInputs = [
31 django-stubs
32 mypy
33 requests
34 types-pyyaml
35 types-requests
36 typing-extensions
37 ];
38
39 nativeCheckInputs = [
40 mypy
41 py
42 pytest-mypy-plugins
43 pytestCheckHook
44 ];
45
46 meta = with lib; {
47 description = "PEP-484 stubs for Django REST Framework";
48 homepage = "https://github.com/typeddjango/djangorestframework-stubs";
49 changelog = "https://github.com/typeddjango/djangorestframework-stubs/releases/tag/${version}";
50 license = licenses.mit;
51 maintainers = with maintainers; [ elohmeier ];
52 };
53}
54