Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest 5, CommonMark 6, docutils 7, sphinx 8}: 9 10buildPythonPackage rec { 11 pname = "recommonmark"; 12 version = "0.5.0"; 13 14 # PyPI tarball is missing some test files: https://github.com/rtfd/recommonmark/pull/128 15 src = fetchFromGitHub { 16 owner = "rtfd"; 17 repo = pname; 18 rev = version; 19 sha256 = "04bjqx2hczmg7rnj2rpsjk7h24diwk83s6fhgrxk00k40w2bpz5j"; 20 }; 21 22 checkInputs = [ pytest ]; 23 propagatedBuildInputs = [ CommonMark docutils sphinx ]; 24 25 checkPhase = '' 26 py.test 27 ''; 28 29 meta = { 30 description = "A docutils-compatibility bridge to CommonMark"; 31 homepage = https://github.com/rtfd/recommonmark; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ fridh ]; 34 }; 35}