Merge pull request #275915 from DerDennisOP/django-markdownx

python3Packages.django-markdownx: init at 4.0.7
This commit is contained in:
OTABI Tomoya 2023-12-24 18:12:43 +09:00 committed by GitHub
commit db1b6cc5d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, django
, fetchFromGitHub
, markdown
, pillow
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "django-markdownx";
version = "4.0.7";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "neutronX";
repo = "django-markdownx";
rev = "refs/tags/v${version}";
hash = "sha256-FZPUlogVd3FMGeH1vfKHA3tXVps0ET+UCQJflpiV2lE=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
django
markdown
pillow
];
# tests only executeable in vagrant
doCheck = false;
pythonImportsCheck = [
"markdownx"
];
meta = with lib; {
description = "Comprehensive Markdown plugin built for Django";
homepage = "https://github.com/neutronX/django-markdownx/";
changelog = "https://github.com/neutronX/django-markdownx/releases/tag/v${version}";
license = licenses.bsd2;
maintainers = with maintainers; [ derdennisop ];
};
}

View File

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