mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
39 lines
851 B
Nix
39 lines
851 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django,
|
|
}:
|
|
let
|
|
version = "0.1.20";
|
|
in
|
|
buildPythonPackage {
|
|
pname = "django-mdeditor";
|
|
inherit version;
|
|
|
|
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 ];
|
|
};
|
|
}
|