python3Packages.djangocms-alias: init at 2.0.1

This commit is contained in:
Jonas Heinrich 2024-11-01 18:13:08 +01:00
parent 9a237768c7
commit 253959e799
2 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,66 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
pythonOlder,
pytestCheckHook,
setuptools,
django-parler,
django-cms,
distutils,
pytest-django,
beautifulsoup4,
python,
django-app-helper,
}:
buildPythonPackage rec {
pname = "djangocms-alias";
version = "2.0.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "django-cms";
repo = "djangocms-alias";
rev = "refs/tags/${version}";
hash = "sha256-ZOushwfBMjzlnuY6vHtM6Ge/VotBHaosIhFItmVkqkc=";
};
build-system = [ setuptools ];
dependencies = [
django
django-cms
django-parler
];
checkInputs = [
beautifulsoup4
distutils
django-app-helper
pytestCheckHook
pytest-django
];
checkPhase = ''
runHook preCheck
${python.interpreter} test_settings.py
runHook postCheck
'';
# Disable tests because dependency djangocms-versioning isn't packaged yet.
doCheck = false;
pythonImportCheck = [ "djangocms_alias" ];
meta = {
description = "Lean enterprise content management powered by Django";
homepage = "https://django-cms.org";
changelog = "https://github.com/django-cms/django-cms/releases/tag/${version}";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.onny ];
};
}

View File

@ -3323,6 +3323,8 @@ self: super: with self; {
djangocms-text-ckeditor = callPackage ../development/python-modules/djangocms-text-ckeditor { };
djangocms-alias = callPackage ../development/python-modules/djangocms-alias { };
django-admin-datta = callPackage ../development/python-modules/django-admin-datta { };
django-admin-sortable2 = callPackage ../development/python-modules/django-admin-sortable2 { };