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 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "pylixm";
17 repo = "django-mdeditor";
18 rev = "v${version}";
19 hash = "sha256-t57j1HhjNQtBwlbqe4mAHQ9WiNcIhMKYmrZkiqh+k5k=";
20 };
21
22 patches = [
23 ./Bump-KaTeX-and-replace-bootcdn-with-jsdelivr.patch
24 ];
25
26 propagatedBuildInputs = [ django ];
27
28 # no tests
29 doCheck = false;
30 pythonImportsCheck = [ "mdeditor" ];
31
32 meta = with lib; {
33 description = "Markdown Editor plugin application for django based on Editor.md";
34 homepage = "https://github.com/pylixm/django-mdeditor";
35 changelog = "https://github.com/pylixm/django-mdeditor/releases";
36 license = licenses.gpl3;
37 maintainers = with maintainers; [ augustebaum ];
38 };
39}