mrkd: remove from python3Packages

It's a CLI tool.
This commit is contained in:
Robert Schütz 2023-08-01 23:22:22 -07:00
parent 26f7e30132
commit c20b0b8ac5
5 changed files with 53 additions and 33 deletions

View file

@ -1,30 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
, jinja2
, mistune
, pygments
, setuptools
}:
buildPythonPackage rec {
pname = "mrkd";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "456f8c1be99da268554b29c6b5383532e58119def5a65d85270bc6a0ecc26aaf";
};
propagatedBuildInputs = [ jinja2 mistune pygments setuptools ];
pythonImportsCheck = [ "mrkd" ];
meta = with lib; {
description = "Write man pages using Markdown, and convert them to Roff or HTML";
homepage = "https://github.com/refi64/mrkd";
license = licenses.bsd2;
# https://github.com/refi64/mrkd/pull/6
broken = versionAtLeast mistune.version "2";
};
}

View file

@ -0,0 +1,51 @@
{ lib
, python3
, fetchPypi
}:
let
python = python3.override {
packageOverrides = self: super: {
# https://github.com/refi64/mrkd/pull/6
mistune = super.mistune.overridePythonAttrs (old: rec {
version = "0.8.4";
src = fetchPypi {
inherit (old) pname;
inherit version;
hash = "sha256-WaNCnbU8ULXGvMigf4hIywDX3IvbQxpKtBkg0gHUdW4=";
};
meta = old.meta // {
knownVulnerabilities = [
"CVE-2022-34749"
];
};
});
};
};
in python.pkgs.buildPythonApplication rec {
pname = "mrkd";
version = "0.2.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "456f8c1be99da268554b29c6b5383532e58119def5a65d85270bc6a0ecc26aaf";
};
propagatedBuildInputs = with python.pkgs; [
jinja2
mistune
pygments
setuptools
];
pythonImportsCheck = [ "mrkd" ];
meta = with lib; {
description = "Write man pages using Markdown, and convert them to Roff or HTML";
homepage = "https://github.com/refi64/mrkd";
license = licenses.bsd2;
maintainers = with maintainers; [ prusnak ];
};
}

View file

@ -5865,7 +5865,7 @@ with pkgs;
mq-cli = callPackage ../tools/system/mq-cli { };
mrkd = with python3Packages; toPythonApplication mrkd;
mrkd = callPackage ../tools/text/mrkd { };
naproche = callPackage ../applications/science/logic/naproche { };

View file

@ -205,6 +205,7 @@ mapAliases ({
mistune_0_8 = throw "mistune_0_8 was removed because it was outdated and insecure"; # added 2022-08-12
mistune_2_0 = mistune; # added 2022-08-12
mox = throw "mox was removed because it is unmaintained"; # added 2023-02-21
mrkd = throw "mrkd has been promoted to a top-level attribute"; # added 2023-08-01
mutmut = throw "mutmut has been promoted to a top-level attribute"; # added 2022-10-02
net2grid = gridnet; # add 2022-04-22
nose-cover3 = throw "nose-cover3 has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-02-16

View file

@ -6704,8 +6704,6 @@ self: super: with self; {
mrjob = callPackage ../development/python-modules/mrjob { };
mrkd = callPackage ../development/python-modules/mrkd { };
ms-active-directory = callPackage ../development/python-modules/ms-active-directory { };
ms-cv = callPackage ../development/python-modules/ms-cv { };