diff --git a/pkgs/development/python-modules/mdformat-myst/default.nix b/pkgs/development/python-modules/mdformat-myst/default.nix index 01a5a327accb..5d6465b29b9a 100644 --- a/pkgs/development/python-modules/mdformat-myst/default.nix +++ b/pkgs/development/python-modules/mdformat-myst/default.nix @@ -2,26 +2,32 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system flit-core, + + # dependencies mdformat, mdformat-footnote, - mdformat-frontmatter, - mdformat-tables, + mdformat-front-matters, + mdformat-gfm, mdit-py-plugins, ruamel-yaml, + + # tests pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "mdformat-myst"; - version = "0.2.1"; + version = "0.3.0"; pyproject = true; src = fetchFromGitHub { owner = "executablebooks"; repo = "mdformat-myst"; - tag = "v${version}"; - hash = "sha256-Ty9QOsOTCNfhdLVuLfD0x63OFfHhODr14i/dhN+Sqnc="; + tag = finalAttrs.version; + hash = "sha256-y0zN47eK0UqTHx6ft/OrczAjdHdmPKIByCnz1c1JURQ="; }; build-system = [ flit-core ]; @@ -29,8 +35,8 @@ buildPythonPackage rec { dependencies = [ mdformat mdformat-footnote - mdformat-frontmatter - mdformat-tables + mdformat-front-matters + mdformat-gfm mdit-py-plugins ruamel-yaml ]; @@ -42,8 +48,8 @@ buildPythonPackage rec { meta = { description = "Mdformat plugin for MyST compatibility"; homepage = "https://github.com/executablebooks/mdformat-myst"; - changelog = "https://github.com/executablebooks/mdformat-myst/releases/tag/v${version}/CHANGELOG.md"; + changelog = "https://github.com/executablebooks/mdformat-myst/releases/tag/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mattkang ]; }; -} +})