1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 django,
6}:
7let
8 version = "0.1.20";
9in
10buildPythonPackage {
11 pname = "django-mdeditor";
12 inherit version;
13
14 src = fetchFromGitHub {
15 owner = "pylixm";
16 repo = "django-mdeditor";
17 rev = "v${version}";
18 hash = "sha256-t57j1HhjNQtBwlbqe4mAHQ9WiNcIhMKYmrZkiqh+k5k=";
19 };
20
21 patches = [
22 ./Bump-KaTeX-and-replace-bootcdn-with-jsdelivr.patch
23 ];
24
25 propagatedBuildInputs = [ django ];
26
27 # no tests
28 doCheck = false;
29 pythonImportsCheck = [ "mdeditor" ];
30
31 meta = with lib; {
32 description = "Markdown Editor plugin application for django based on Editor.md";
33 homepage = "https://github.com/pylixm/django-mdeditor";
34 changelog = "https://github.com/pylixm/django-mdeditor/releases";
35 license = licenses.gpl3;
36 maintainers = with maintainers; [ augustebaum ];
37 };
38}