python311Packages.mdformat-mkdocs: enable tests

This commit is contained in:
Fabian Affolter 2023-11-23 11:33:55 +01:00
parent aa7c4d7148
commit 471655e878

View file

@ -6,18 +6,19 @@
, mdformat-gfm , mdformat-gfm
, mdit-py-plugins , mdit-py-plugins
, pythonOlder , pythonOlder
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "mdformat-mkdocs"; pname = "mdformat-mkdocs";
version = "1.1.0"; version = "1.1.0";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "KyleKing"; owner = "KyleKing";
repo = pname; repo = "mdformat-mkdocs";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-5MCsXCkYnoLEZZoj9WrO/Z3VzTKagoOrMCuTpA4dGAQ="; hash = "sha256-5MCsXCkYnoLEZZoj9WrO/Z3VzTKagoOrMCuTpA4dGAQ=";
}; };
@ -32,6 +33,10 @@ buildPythonPackage rec {
mdit-py-plugins mdit-py-plugins
]; ];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ pythonImportsCheck = [
"mdformat_mkdocs" "mdformat_mkdocs"
]; ];
@ -39,7 +44,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "mdformat plugin for MkDocs"; description = "mdformat plugin for MkDocs";
homepage = "https://github.com/KyleKing/mdformat-mkdocs"; homepage = "https://github.com/KyleKing/mdformat-mkdocs";
changelog = "https://github.com/KyleKing/mdformat-mkdocs/releases/tag/v${version}"; changelog = "https://github.com/KyleKing/mdformat-mkdocs/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ aldoborrero ]; maintainers = with maintainers; [ aldoborrero ];
}; };