python310Packages.django-markup: init at 1.6

A generic Django application to convert text with specific markup to html.
This commit is contained in:
Martin Weinelt 2023-02-26 22:12:53 +00:00
parent 9628dfdca8
commit ed28d79fd4
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,75 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, django
# optionals
, bleach
, docutils
, markdown
, pygments
, python-creole
, smartypants
, textile
# tests
, pytest-django
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "django-markup";
version = "1.6";
format = "setuptools";
src = fetchFromGitHub {
owner = "bartTC";
repo = "django-markup";
rev = "refs/tags/v${version}";
hash = "sha256-Hh+3KxFE6sSIqRowyZ1Pz6NmBaTbltZaEhSjFrw760Q=";
};
postPatch = ''
sed -i "/--cov/d" setup.cfg
'';
buildInputs = [
django
];
passthru.optional-dependencies = {
all_filter_dependencies = [
bleach
docutils
markdown
pygments
python-creole
smartypants
textile
];
};
pythonImportsCheck = [
"django_markup"
];
nativeCheckInputs = [
pytest-django
pytestCheckHook
] ++ passthru.optional-dependencies.all_filter_dependencies;
env.DJANGO_SETTINGS_MODULE = "django_markup.tests";
disabledTests = [
# https://github.com/bartTC/django-markup/issues/40
"test_rst_with_pygments"
];
meta = with lib; {
description = "Generic Django application to convert text with specific markup to html.";
homepage = "https://github.com/bartTC/django-markup";
changelog = "https://github.com/bartTC/django-markup/blob/v${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -2665,6 +2665,8 @@ self: super: with self; {
django-mailman3 = callPackage ../development/python-modules/django-mailman3 { };
django-markup = callPackage ../development/python-modules/django-markup { };
django-model-utils = callPackage ../development/python-modules/django-model-utils { };
django-modelcluster = callPackage ../development/python-modules/django_modelcluster { };