diff --git a/pkgs/development/python-modules/django-modelcluster/default.nix b/pkgs/development/python-modules/django-modelcluster/default.nix index ada5591773f9..06cbb3fc2c68 100644 --- a/pkgs/development/python-modules/django-modelcluster/default.nix +++ b/pkgs/development/python-modules/django-modelcluster/default.nix @@ -1,14 +1,21 @@ { lib, buildPythonPackage, - django-taggit, - django, fetchFromGitHub, + + # build-system + setuptools, + + # dependencies + django, + pytz, + + # optional-dependencies + django-taggit, + + # tests pytest-django, pytestCheckHook, - pythonOlder, - pytz, - setuptools, }: buildPythonPackage rec { @@ -16,8 +23,6 @@ buildPythonPackage rec { version = "6.4"; pyproject = true; - disabled = pythonOlder "3.9"; - src = fetchFromGitHub { owner = "wagtail"; repo = "django-modelcluster"; @@ -44,10 +49,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "modelcluster" ]; - meta = with lib; { + meta = { description = "Django extension to allow working with 'clusters' of models as a single unit, independently of the database"; homepage = "https://github.com/torchbox/django-modelcluster/"; - changelog = "https://github.com/wagtail/django-modelcluster/blob/v${version}/CHANGELOG.txt"; - license = licenses.bsd2; + changelog = "https://github.com/wagtail/django-modelcluster/blob/${src.tag}/CHANGELOG.txt"; + license = lib.licenses.bsd2; }; }