From e41dd7e6697ec489412bb9ca435fdc7239371453 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 25 Jan 2026 00:37:52 +0000 Subject: [PATCH] python3Packages.mdformat-frontmatter: 2.0.8 -> 2.0.10 Diff: https://github.com/butler54/mdformat-frontmatter/compare/v2.0.8...v2.0.10 Changelog: https://github.com/butler54/mdformat-frontmatter/blob/v2.0.10/CHANGELOG.md --- .../mdformat-frontmatter/default.nix | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/mdformat-frontmatter/default.nix b/pkgs/development/python-modules/mdformat-frontmatter/default.nix index 56d6ff7d04bb..8cb60804f62a 100644 --- a/pkgs/development/python-modules/mdformat-frontmatter/default.nix +++ b/pkgs/development/python-modules/mdformat-frontmatter/default.nix @@ -2,27 +2,34 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system flit-core, + + # dependencies mdformat, mdit-py-plugins, ruamel-yaml, + + # tests + pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "mdformat-frontmatter"; - version = "2.0.8"; + version = "2.0.10"; pyproject = true; src = fetchFromGitHub { owner = "butler54"; repo = "mdformat-frontmatter"; - tag = "v${version}"; - hash = "sha256-2heQw8LL/ILY36oItBeQq33qjVBGT51qGG4CcCEDutA="; + tag = "v${finalAttrs.version}"; + hash = "sha256-snW9L9vnRHjNchhWZ5sIrn1r4piEYJeKQwib/4rarOo="; }; - nativeBuildInputs = [ flit-core ]; + build-system = [ flit-core ]; - propagatedBuildInputs = [ + dependencies = [ mdformat mdit-py-plugins ruamel-yaml @@ -30,14 +37,18 @@ buildPythonPackage rec { pythonImportsCheck = [ "mdformat_frontmatter" ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + meta = { description = "Mdformat plugin to ensure frontmatter is respected"; homepage = "https://github.com/butler54/mdformat-frontmatter"; - changelog = "https://github.com/butler54/mdformat-frontmatter/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/butler54/mdformat-frontmatter/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ aldoborrero polarmutex ]; }; -} +})