Merge pull request #190113 from elohmeier/django-stubs
python3Packages.django-stubs: init at 1.12.0
This commit is contained in:
commit
990a171e9f
23
pkgs/development/python-modules/django-stubs-ext/default.nix
Normal file
23
pkgs/development/python-modules/django-stubs-ext/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
38
pkgs/development/python-modules/django-stubs/default.nix
Normal file
38
pkgs/development/python-modules/django-stubs/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user