2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-09-09 14:08:57 +00:00
|
|
|
, django
|
|
|
|
, django-stubs-ext
|
|
|
|
, fetchPypi
|
|
|
|
, mypy
|
2023-05-24 13:37:59 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-09-09 14:08:57 +00:00
|
|
|
, tomli
|
|
|
|
, types-pytz
|
|
|
|
, types-pyyaml
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-stubs";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "4.2.3";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-2tqzm0bZro83qOh5xZDzmp4EK1ZcA/oMWo91S0QbHyM=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
django-stubs-ext
|
|
|
|
mypy
|
|
|
|
types-pytz
|
|
|
|
types-pyyaml
|
|
|
|
typing-extensions
|
2023-05-24 13:37:59 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
|
|
tomli
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
2022-09-09 14:08:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "PEP-484 stubs for Django";
|
|
|
|
homepage = "https://github.com/typeddjango/django-stubs";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/typeddjango/django-stubs/releases/tag/${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|