python310Packages.django-markup: init at 1.6
A generic Django application to convert text with specific markup to html.
This commit is contained in:
parent
9628dfdca8
commit
ed28d79fd4
75
pkgs/development/python-modules/django-markup/default.nix
Normal file
75
pkgs/development/python-modules/django-markup/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -2665,6 +2665,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
django-mailman3 = callPackage ../development/python-modules/django-mailman3 { };
|
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-model-utils = callPackage ../development/python-modules/django-model-utils { };
|
||||||
|
|
||||||
django-modelcluster = callPackage ../development/python-modules/django_modelcluster { };
|
django-modelcluster = callPackage ../development/python-modules/django_modelcluster { };
|
||||||
|
Loading…
Reference in New Issue
Block a user