Merge pull request #246720 from dotlambda/mrkd-top-level

mrkd: remove from python3Packages
This commit is contained in:
Robert Schütz 2023-08-05 01:02:55 +00:00 committed by GitHub
commit c12de5e433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 54 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,52 @@
{ 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;
mainProgram = "mrkd";
maintainers = with maintainers; [ prusnak ];
};
}

View File

@ -5885,7 +5885,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

@ -204,6 +204,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

@ -6706,8 +6706,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 { };