python3Packages.django-modelcluster: rename, fix build, enable tests
This commit is contained in:
parent
ccc1ddd231
commit
32b8c9e7b9
@ -1,25 +1,43 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
|
, django
|
||||||
|
, django-taggit
|
||||||
, pytz
|
, pytz
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, six
|
, python
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "django-modelcluster";
|
pname = "django-modelcluster";
|
||||||
version = "6.0";
|
version = "6.0";
|
||||||
|
format = "setuptools";
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "sha256-zc/+9br103We4ExbYP+vGgyV/A8mXnYvPd+t3jOU5ds=";
|
|
||||||
};
|
|
||||||
|
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
doCheck = false;
|
src = fetchFromGitHub {
|
||||||
|
owner = "wagtail";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-p6hvOkPWRVJYLHvwyn9nS05wblikRFmlSYZuLiCcuqc=";
|
||||||
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pytz six ];
|
propagatedBuildInputs = [
|
||||||
|
django
|
||||||
|
pytz
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru.extras-require.taggit = [
|
||||||
|
django-taggit
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = passthru.extras-require.taggit;
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
${python.interpreter} ./runtests.py --noinput
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Django extension to allow working with 'clusters' of models as a single unit, independently of the database";
|
description = "Django extension to allow working with 'clusters' of models as a single unit, independently of the database";
|
||||||
|
@ -55,6 +55,7 @@ mapAliases ({
|
|||||||
django_appconf = django-appconf; # added 2022-03-03
|
django_appconf = django-appconf; # added 2022-03-03
|
||||||
django_environ = django-environ; # added 2021-12-25
|
django_environ = django-environ; # added 2021-12-25
|
||||||
django_extensions = django-extensions; # added 2022-01-09
|
django_extensions = django-extensions; # added 2022-01-09
|
||||||
|
django_modelcluster = django-modelcluster; # added 2022-04-02
|
||||||
django_redis = django-redis; # added 2021-10-11
|
django_redis = django-redis; # added 2021-10-11
|
||||||
django_taggit = django-taggit; # added 2021-10-11
|
django_taggit = django-taggit; # added 2021-10-11
|
||||||
dns = dnspython; # added 2017-12-10
|
dns = dnspython; # added 2017-12-10
|
||||||
|
@ -2293,7 +2293,7 @@ in {
|
|||||||
|
|
||||||
django-mailman3 = callPackage ../development/python-modules/django-mailman3 { };
|
django-mailman3 = callPackage ../development/python-modules/django-mailman3 { };
|
||||||
|
|
||||||
django_modelcluster = callPackage ../development/python-modules/django_modelcluster { };
|
django-modelcluster = callPackage ../development/python-modules/django_modelcluster { };
|
||||||
|
|
||||||
django-multiselectfield = callPackage ../development/python-modules/django-multiselectfield { };
|
django-multiselectfield = callPackage ../development/python-modules/django-multiselectfield { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user