From 27ee1e1ef380c3720efac36fd70f9a51800881c5 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 28 Jan 2026 18:29:19 +0000 Subject: [PATCH] python3Packages.pytest-markdown-docs: 0.5.1 -> 0.9.1 Diff: https://github.com/modal-com/pytest-markdown-docs/compare/v0.5.1...v0.9.1 --- .../pytest-markdown-docs/default.nix | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pytest-markdown-docs/default.nix b/pkgs/development/python-modules/pytest-markdown-docs/default.nix index c13985c253b5..ef8627f4aea5 100644 --- a/pkgs/development/python-modules/pytest-markdown-docs/default.nix +++ b/pkgs/development/python-modules/pytest-markdown-docs/default.nix @@ -2,26 +2,36 @@ lib, buildPythonPackage, fetchFromGitHub, - poetry-core, + + # build-system + hatchling, + + # dependencies markdown-it-py, pytest, + + # tests + mdit-py-plugins, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pytest-markdown-docs"; - version = "0.5.1"; + version = "0.9.1"; pyproject = true; src = fetchFromGitHub { owner = "modal-com"; repo = "pytest-markdown-docs"; - tag = "v${version}"; - hash = "sha256-mclN28tfPcoFxswECjbrkeOI51XXSqUXfbvuSHrd7Sw="; + tag = "v${finalAttrs.version}"; + hash = "sha256-7fGuKTHeaMEbsHD9Zje0ODP2FRWSi0WrCZsPwRYP6rg="; }; - build-system = [ poetry-core ]; + build-system = [ hatchling ]; + pythonRelaxDeps = [ + "markdown-it-py" + ]; dependencies = [ markdown-it-py pytest @@ -29,7 +39,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "pytest_markdown_docs" ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + mdit-py-plugins + pytestCheckHook + ]; meta = { description = "Run pytest on markdown code fence blocks"; @@ -37,4 +50,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; }; -} +})