Merge pull request #190113 from elohmeier/django-stubs

python3Packages.django-stubs: init at 1.12.0
This commit is contained in:
Mario Rodas 2022-09-08 19:11:25 -05:00 committed by GitHub
commit 990a171e9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{ buildPythonPackage, django, fetchPypi, lib, typing-extensions }:
buildPythonPackage rec {
pname = "django-stubs-ext";
version = "0.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-m9dBg3arALf4jW1Wvp/s6Fv6DHw0isYhFV+k16kRRvI=";
};
# setup.cfg tries to pull in nonexistent LICENSE.txt file
postPatch = "rm setup.cfg";
propagatedBuildInputs = [ django typing-extensions ];
meta = with lib; {
description = "Extensions and monkey-patching for django-stubs";
homepage = "https://github.com/typeddjango/django-stubs";
license = licenses.mit;
maintainers = with maintainers; [ elohmeier ];
};
}

View File

@ -0,0 +1,38 @@
{ buildPythonPackage
, django
, django-stubs-ext
, fetchPypi
, lib
, mypy
, tomli
, types-pytz
, types-pyyaml
, typing-extensions
}:
buildPythonPackage rec {
pname = "django-stubs";
version = "1.12.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-6os10NpJ97LumaeRJfGUPgM0Md0RRybWZDzDXeYZIw4=";
};
propagatedBuildInputs = [
django
django-stubs-ext
mypy
tomli
types-pytz
types-pyyaml
typing-extensions
];
meta = with lib; {
description = "PEP-484 stubs for Django";
homepage = "https://github.com/typeddjango/django-stubs";
license = licenses.mit;
maintainers = with maintainers; [ elohmeier ];
};
}

View File

@ -2616,6 +2616,10 @@ in {
django-storages = callPackage ../development/python-modules/django-storages { };
django-stubs = callPackage ../development/python-modules/django-stubs { };
django-stubs-ext = callPackage ../development/python-modules/django-stubs-ext { };
django-tables2 = callPackage ../development/python-modules/django-tables2 { };
django_tagging = callPackage ../development/python-modules/django_tagging { };