Files
nixpkgs/pkgs/development/python-modules/django-markdownx/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
957 B
Nix

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