python310Packages.django-polymorphic: 2.1.2 -> 3.1, adopt, normalise attr
This commit is contained in:
parent
7c035dbb75
commit
0997b7fc29
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
@ -58,6 +58,7 @@ mapAliases ({
|
||||
django_environ = django-environ; # added 2021-12-25
|
||||
django_extensions = django-extensions; # added 2022-01-09
|
||||
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
|
||||
|
@ -2358,7 +2358,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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user