587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
48 lines
900 B
Nix
48 lines
900 B
Nix
{ lib
|
|
, beautifulsoup4
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "markdownify";
|
|
version = "0.12.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-H7CMYYsw4O56MaObmY9EoY+yirJU9V9K8GttNaIXnic=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
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/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ McSinyx ];
|
|
mainProgram = "markdownify";
|
|
};
|
|
}
|