Martin Weinelt ae4a1a485a
treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00

40 lines
876 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 = with lib; {
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 = licenses.gpl3;
maintainers = with maintainers; [ augustebaum ];
};
}