504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
49 lines
951 B
Nix
49 lines
951 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, django
|
|
, django-stubs-ext
|
|
, fetchPypi
|
|
, mypy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, tomli
|
|
, types-pytz
|
|
, types-pyyaml
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-stubs";
|
|
version = "4.2.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-5gtD3mYqGZ20sVyAPAZmngrFA1YUrykcvTuRWR99zJQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
django-stubs-ext
|
|
mypy
|
|
types-pytz
|
|
types-pyyaml
|
|
typing-extensions
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
tomli
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "PEP-484 stubs for Django";
|
|
homepage = "https://github.com/typeddjango/django-stubs";
|
|
changelog = "https://github.com/typeddjango/django-stubs/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
};
|
|
}
|