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