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