summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/markdown-it-py
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/markdown-it-py')
-rw-r--r--pkgs/development/python-modules/markdown-it-py/default.nix31
1 files changed, 13 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/markdown-it-py/default.nix b/pkgs/development/python-modules/markdown-it-py/default.nix
index c7a8a3e17f3e..322c4ac533d2 100644
--- a/pkgs/development/python-modules/markdown-it-py/default.nix
+++ b/pkgs/development/python-modules/markdown-it-py/default.nix
@@ -1,41 +1,36 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonOlder
, attrs
-, coverage
+, linkify-it-py
, psutil
, pytest-benchmark
+, pytest-regressions
+, typing-extensions
}:
buildPythonPackage rec {
pname = "markdown-it-py";
- version = "0.6.2";
+ version = "1.0.0";
+ format = "pyproject";
- disabled = pythonOlder "3.7";
+ disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "executablebooks";
- repo = "markdown-it-py";
+ repo = pname;
rev = "v${version}";
- sha256 = "1g9p8pdnvjya436lii63r5gjajhmbhmyh9ngbjqf9dqny05nagz1";
+ hash = "sha256-GA7P2I8N+i2ISsVgx58zyhrfKMcZ7pL4X9T/trbsr1Y=";
};
- propagatedBuildInputs = [ attrs ];
+ propagatedBuildInputs = [ attrs linkify-it-py ]
+ ++ lib.optional (pythonOlder "3.8") typing-extensions;
checkInputs = [
- coverage
- pytest-benchmark
psutil
+ pytest-benchmark
+ pytest-regressions
pytestCheckHook
];
-
- disabledTests = [
- # Requires the unpackaged pytest-regressions fixture plugin
- "test_amsmath"
- "test_container"
- "test_deflist"
- "test_dollarmath"
- "test_spec"
- "test_texmath"
- ];
+ pytestImportsCheck = [ "markdown_it" ];
meta = with lib; {
description = "Markdown parser done right";