diff --git a/pkgs/development/python-modules/mdformat-simple-breaks/default.nix b/pkgs/development/python-modules/mdformat-simple-breaks/default.nix index da2b68c1eab7..043d2ac18d3d 100644 --- a/pkgs/development/python-modules/mdformat-simple-breaks/default.nix +++ b/pkgs/development/python-modules/mdformat-simple-breaks/default.nix @@ -4,30 +4,40 @@ fetchFromGitHub, flit-core, mdformat, + pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "mdformat-simple-breaks"; - version = "0.0.1"; + version = "0.1.0"; pyproject = true; src = fetchFromGitHub { owner = "csala"; repo = "mdformat-simple-breaks"; - tag = "v${version}"; - hash = "sha256-4lJHB4r9lI2uGJ/BmFFc92sumTRKBBwiRmGBdQkzfd0="; + tag = "v${finalAttrs.version}"; + hash = "sha256-w0qPxIlCFMvs7p2Lya/ATkQN9wVt8ipsePZgonN/qpc="; }; - nativeBuildInputs = [ flit-core ]; + build-system = [ + flit-core + ]; - propagatedBuildInputs = [ mdformat ]; + dependencies = [ + mdformat + ]; pythonImportsCheck = [ "mdformat_simple_breaks" ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + meta = { description = "Mdformat plugin to render thematic breaks using three dashes"; + changelog = "https://github.com/csala/mdformat-simple-breaks/releases/tag/${finalAttrs.src.tag}"; homepage = "https://github.com/csala/mdformat-simple-breaks"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ aldoborrero ]; }; -} +})