Merge pull request #173549 from SuperSandro2000/django-polymorphic

python310Packages.django-polymorphic: 2.1.2 -> 3.1, adopt
This commit is contained in:
Sandro 2022-05-24 20:04:50 +02:00 committed by GitHub
commit 737bbfdb5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 7 deletions

View File

@ -2,26 +2,29 @@
buildPythonPackage rec {
pname = "django-polymorphic";
version = "2.1.2";
version = "3.1";
# PyPI tarball is missing some test files
src = fetchFromGitHub {
owner = pname;
repo = pname;
owner = "django-polymorphic";
repo = "django-polymorphic";
rev = "v${version}";
sha256 = "0zghrq7y7g2ls38cz6y98qj5xwnn992slhb95qyp6l66d420j179";
sha256 = "sha256-JJY+FoMPSnWuSsNIas2JedGJpdm6RfPE3E1VIjGuXIc=";
};
checkInputs = [ dj-database-url ];
propagatedBuildInputs = [ django ];
checkInputs = [ dj-database-url ];
checkPhase = ''
${python.interpreter} runtests.py
'';
pythonImportsCheck = [ "polymorphic" ];
meta = with lib; {
homepage = "https://github.com/django-polymorphic/django-polymorphic";
description = "Improved Django model inheritance with automatic downcasting";
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -60,6 +60,7 @@ mapAliases ({
django_extensions = django-extensions; # added 2022-01-09
django_guardian = django-guardian; # added 2022-05-19
django_modelcluster = django-modelcluster; # added 2022-04-02
django_polymorphic = django-polymorphic; # added 2022-05-24
django_redis = django-redis; # added 2021-10-11
django_taggit = django-taggit; # added 2021-10-11
dns = dnspython; # added 2017-12-10

View File

@ -2366,7 +2366,7 @@ in {
django-picklefield = callPackage ../development/python-modules/django-picklefield { };
django_polymorphic = callPackage ../development/python-modules/django-polymorphic { };
django-polymorphic = callPackage ../development/python-modules/django-polymorphic { };
django-postgresql-netfields = callPackage ../development/python-modules/django-postgresql-netfields { };