1{ lib, buildPythonPackage, fetchPypi, isPy27, cffi, pytest }: 2 3buildPythonPackage rec { 4 pname = "pycmarkgfm"; 5 version = "1.1.0"; 6 disabled = isPy27; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "694cb242f4961437c30b5b015dfbce9d1a1fa48305c2e39f902ce7c65b4cbe0e"; 11 }; 12 13 propagatedNativeBuildInputs = [ cffi ]; 14 15 propagatedBuildInputs = [ cffi ]; 16 17 # I would gladly use pytestCheckHook, but pycmarkgfm relies on a native 18 # extension (cmark.so, built through setup.py), and pytestCheckHook runs 19 # pytest in an environment that does not contain this extension, which fails. 20 # cmarkgfm has virtually the same build setup as this package, and uses the 21 # same trick: pkgs/development/python-modules/cmarkgfm/default.nix 22 checkInputs = [ pytest ]; 23 checkPhase = '' 24 pytest 25 ''; 26 27 meta = with lib; { 28 homepage = "https://github.com/zopieux/pycmarkgfm"; 29 description = "Bindings to GitHub's Flavored Markdown (cmark-gfm), with enhanced support for task lists"; 30 platforms = platforms.linux ++ platforms.darwin; 31 license = licenses.gpl3Plus; 32 maintainers = with maintainers; [ zopieux ]; 33 }; 34}