Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, markdown 6}: 7 8buildPythonPackage rec { 9 pname = "markdown-macros"; 10 version = "0.1.2"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "1lzvrb7nci22yp21ab2qqc9p0fhkazqj29vw0wln2r4ckb2nbawv"; 15 }; 16 17 patches = [ 18 # Fixes a bug with markdown>2.4 19 (fetchpatch { 20 url = "https://github.com/wnielson/markdown-macros/pull/1.patch"; 21 sha256 = "17njbgq2srzkf03ar6yn92frnsbda3g45cdi529fdh0x8mmyxci0"; 22 }) 23 ]; 24 25 prePatch = '' 26 substituteInPlace setup.py --replace "distribute" "setuptools" 27 ''; 28 29 propagatedBuildInputs = [ markdown ]; 30 31 doCheck = false; 32 33 meta = with lib; { 34 description = "An extension for python-markdown that makes writing trac-like macros easy"; 35 homepage = "https://github.com/wnielson/markdown-macros"; 36 license = licenses.mit; 37 maintainers = [ maintainers.abigailbuccaneer ]; 38 }; 39 40}