mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ 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 ];
|
|
};
|
|
}
|
|
|