mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-09 23:03:47 +00:00
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
buildPythonPackage,
|
|
django,
|
|
fetchFromGitHub,
|
|
lib,
|
|
pytest-django,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
markdown,
|
|
bleach,
|
|
tinycss2,
|
|
}:
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "django-markdownify";
|
|
version = "0.9.7";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "erwinmatijsen";
|
|
repo = "django-markdownify";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-Zl6t/ja/VAYrVOM6xkjcayn+vCss6JLQr+vBGsGGp+k=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
})
|