Unverified Commit ce849d09 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.django-markdownify: init at 0.9.6 (#501021)

parents 08fda638 5449d87d
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  django,
  fetchFromGitHub,
  lib,
  pytest-django,
  pytestCheckHook,
  setuptools,
  markdown,
  bleach,
  tinycss2,
}:
buildPythonPackage (finalAttrs: {
  pname = "django-markdownify";
  version = "0.9.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "erwinmatijsen";
    repo = "django-markdownify";
    tag = finalAttrs.version;
    hash = "sha256-L/N0jjxBz7aQletOg+qairgq4utifPz4oqjT9AcljLI=";
  };

  build-system = [ setuptools ];

  dependencies = [
    django
    markdown
    bleach
  ]
  ++ bleach.optional-dependencies.css;

  preCheck = ''
    export DJANGO_SETTINGS_MODULE=markdownify.checks
  '';

  nativeCheckInputs = [
    tinycss2
    pytest-django
    pytestCheckHook
  ];

  pythonImportsCheck = [ "markdownify" ];

  disabledTests = [
    # Test settings didn't setup DjangoTemplates
    "test_markdownify_nodelist"
  ];

  meta = {
    description = "Markdown template filter for Django";
    homepage = "https://github.com/erwinmatijsen/django-markdownify";
    changelog = "https://github.com/erwinmatijsen/django-markdownify/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ kurogeek ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -4254,6 +4254,8 @@ self: super: with self; {
  django-maintenance-mode = callPackage ../development/python-modules/django-maintenance-mode { };
  django-markdownify = callPackage ../development/python-modules/django-markdownify { };
  django-markdownx = callPackage ../development/python-modules/django-markdownx { };
  django-markup = callPackage ../development/python-modules/django-markup { };