Merge pull request #229182 from fabaff/django-stubs-bump

python310Packages.django-stubs-ext: 0.8.0 -> 4.2.0, python310Packages.django-stubs: 1.15.0 -> 4.2.0
This commit is contained in:
Fabian Affolter
2023-05-01 09:12:22 +02:00
committed by GitHub
2 changed files with 41 additions and 9 deletions
@@ -1,18 +1,39 @@
{ buildPythonPackage, django, fetchPypi, lib, typing-extensions }:
{ lib
, buildPythonPackage
, django
, fetchPypi
, pytestCheckHook
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "django-stubs-ext";
version = "0.8.0";
version = "4.2.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-mpup4oCHN5Sd6WoPzosFTxLTjkYQEdd+vAdP/oxD38s=";
hash = "sha256-d4nwyuynFS/vB61rlN7HMQoF0Ljat395eeGdsAN7USc=";
};
# setup.cfg tries to pull in nonexistent LICENSE.txt file
postPatch = "rm setup.cfg";
propagatedBuildInputs = [ django typing-extensions ];
propagatedBuildInputs = [
django
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"django_stubs_ext"
];
meta = with lib; {
description = "Extensions and monkey-patching for django-stubs";
@@ -1,9 +1,11 @@
{ buildPythonPackage
{ lib
, buildPythonPackage
, django
, django-stubs-ext
, fetchPypi
, lib
, mypy
, pytestCheckHook
, pythonOlder
, tomli
, types-pytz
, types-pyyaml
@@ -12,26 +14,35 @@
buildPythonPackage rec {
pname = "django-stubs";
version = "1.15.0";
version = "4.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-C7+esXLFsG7M/y1wTHw5BuSixhRt+MMu6fOlHikmVYE=";
hash = "sha256-k7r/gk8KBW5xA2tCO5QqdPB7kJ5F4/o4GFuRD1l8XAg=";
};
propagatedBuildInputs = [
django
django-stubs-ext
mypy
tomli
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 ];
};