1
0
Fork 1
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:
OTABI Tomoya 2023-09-08 10:52:48 +09:00 committed by GitHub
commit 217c61fd1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -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 { };