1{
2 lib,
3 buildPythonPackage,
4 cffi,
5 fetchPypi,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "cmarkgfm";
12 version = "2024.11.20";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-XdAc9hl1qKVyE83vXthw6TYDLxP+k9YN32Wf+5z3PGo=";
20 };
21
22 propagatedNativeBuildInputs = [ cffi ];
23
24 propagatedBuildInputs = [ cffi ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "cmarkgfm" ];
29
30 meta = with lib; {
31 description = "Minimal bindings to GitHub's fork of cmark";
32 homepage = "https://github.com/jonparrott/cmarkgfm";
33 license = licenses.mit;
34 maintainers = with maintainers; [ fab ];
35 };
36}