mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
Merge pull request #247913 from elohmeier/djangorestframework-stubs
python3Packages.djangorestframework-stubs: init at 3.14.2
This commit is contained in:
commit
217c61fd1f
|
@ -0,0 +1,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 ];
|
||||
};
|
||||
}
|
||||
|
|
@ -3006,6 +3006,8 @@ self: super: with self; {
|
|||
|
||||
djangorestframework-simplejwt = callPackage ../development/python-modules/djangorestframework-simplejwt { };
|
||||
|
||||
djangorestframework-stubs = callPackage ../development/python-modules/djangorestframework-stubs { };
|
||||
|
||||
django-reversion = callPackage ../development/python-modules/django-reversion { };
|
||||
|
||||
django-sekizai = callPackage ../development/python-modules/django-sekizai { };
|
||||
|
|
Loading…
Reference in a new issue