1{ lib, buildPythonPackage, fetchFromGitHub, python, pygments }: 2 3buildPythonPackage rec { 4 pname = "markdown2"; 5 version = "2.4.1"; 6 7 # PyPI does not contain tests, so using GitHub instead. 8 src = fetchFromGitHub { 9 owner = "trentm"; 10 repo = "python-markdown2"; 11 rev = version; 12 sha256 = "0y7kh9jj8ys00qkfmmyqj63y21g7wn7yr715kj0j1nabs6xbp0y7"; 13 }; 14 15 checkInputs = [ pygments ]; 16 17 checkPhase = '' 18 ${python.interpreter} ./test/test.py 19 ''; 20 21 meta = with lib; { 22 description = "A fast and complete Python implementation of Markdown"; 23 homepage = "https://github.com/trentm/python-markdown2"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ hbunke ]; 26 }; 27}