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-05-24 13:37:59 +00:00
|
|
|
version = "4.2.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-k7r/gk8KBW5xA2tCO5QqdPB7kJ5F4/o4GFuRD1l8XAg=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|