1{
2 lib,
3 beautifulsoup4,
4 buildPythonPackage,
5 fetchPypi,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9 six,
10}:
11
12buildPythonPackage rec {
13 pname = "markdownify";
14 version = "0.12.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-H7CMYYsw4O56MaObmY9EoY+yirJU9V9K8GttNaIXnic=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 beautifulsoup4
28 six
29 ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "markdownify" ];
34
35 meta = with lib; {
36 description = "HTML to Markdown converter";
37 homepage = "https://github.com/matthewwithanm/python-markdownify";
38 changelog = "https://github.com/matthewwithanm/python-markdownify/releases/tag/${version}";
39 license = licenses.mit;
40 maintainers = with maintainers; [ McSinyx ];
41 mainProgram = "markdownify";
42 };
43}