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 ]; }; -} +})