2025-08-14 21:21:45 +00:00

50 lines
1001 B
Nix

{
lib,
beautifulsoup4,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
setuptools-scm,
six,
}:
buildPythonPackage rec {
pname = "markdownify";
version = "1.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "matthewwithanm";
repo = "python-markdownify";
tag = version;
hash = "sha256-/u9rjbHeBhiqzpudsv2bFSaFbme1zmCv8/jEflEDNkQ=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
beautifulsoup4
six
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "markdownify" ];
meta = with lib; {
description = "HTML to Markdown converter";
homepage = "https://github.com/matthewwithanm/python-markdownify";
changelog = "https://github.com/matthewwithanm/python-markdownify/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ McSinyx ];
mainProgram = "markdownify";
};
}