Files
nixpkgs/pkgs/development/python-modules/markdownify/default.nix
Ihar Hrachyshka cca3b04b44 treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 19:01:23 +01:00

50 lines
999 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 = {
description = "HTML to Markdown converter";
homepage = "https://github.com/matthewwithanm/python-markdownify";
changelog = "https://github.com/matthewwithanm/python-markdownify/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ McSinyx ];
mainProgram = "markdownify";
};
}