Files
nixpkgs/pkgs/development/python-modules/django-mdeditor/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

40 lines
874 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
}:
let
version = "0.1.20";
in
buildPythonPackage {
pname = "django-mdeditor";
inherit version;
format = "setuptools";
src = fetchFromGitHub {
owner = "pylixm";
repo = "django-mdeditor";
rev = "v${version}";
hash = "sha256-t57j1HhjNQtBwlbqe4mAHQ9WiNcIhMKYmrZkiqh+k5k=";
};
patches = [
./Bump-KaTeX-and-replace-bootcdn-with-jsdelivr.patch
];
propagatedBuildInputs = [ django ];
# no tests
doCheck = false;
pythonImportsCheck = [ "mdeditor" ];
meta = {
description = "Markdown Editor plugin application for django based on Editor.md";
homepage = "https://github.com/pylixm/django-mdeditor";
changelog = "https://github.com/pylixm/django-mdeditor/releases";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ augustebaum ];
};
}