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