Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 27 lines 711 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, python, pygments }: 2 3buildPythonPackage rec { 4 pname = "markdown2"; 5 version = "2.4.0"; 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 = "sha256:03qmf087phpj0h9hx111k4r5pkm48dhb61mqhp1v75gd09k0z79z"; 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}