From 2c68314eb1ef45ca96227d002f965522b0c86509 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 18 Jan 2023 15:43:15 +0100 Subject: [PATCH] python310Packages.mistletoe: add changelog to meta - add pythonImportsCheck --- .../python-modules/mistletoe/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/mistletoe/default.nix b/pkgs/development/python-modules/mistletoe/default.nix index 58b4bae2299f..bd352fd41425 100644 --- a/pkgs/development/python-modules/mistletoe/default.nix +++ b/pkgs/development/python-modules/mistletoe/default.nix @@ -1,21 +1,29 @@ { lib -, isPy3k , fetchPypi -, buildPythonPackage }: +, buildPythonPackage +, pythonOlder +}: buildPythonPackage rec { pname = "mistletoe"; version = "1.0.0"; - disabled = !isPy3k; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-+g6cV+IFDP1orjBOT5xeHmk1dMxf2DI9szRSlJ1oJmE="; + hash = "sha256-+g6cV+IFDP1orjBOT5xeHmk1dMxf2DI9szRSlJ1oJmE="; }; + pythonImportsCheck = [ + "mistletoe" + ]; + meta = with lib; { - description = "A fast, extensible Markdown parser in pure Python."; + description = "Fast and extensible Markdown parser"; homepage = "https://github.com/miyuchina/mistletoe"; + changelog = "https://github.com/miyuchina/mistletoe/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ eadwu ]; };