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