ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / markdown-macros / default.nix
blobe95cbe3c4c101d77e8b0272a749f9bf2a243cf53
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , fetchpatch
5 , markdown
6 }:
8 buildPythonPackage rec {
9   pname = "markdown-macros";
10   version = "0.1.2";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "1lzvrb7nci22yp21ab2qqc9p0fhkazqj29vw0wln2r4ckb2nbawv";
15   };
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   ];
25   prePatch = ''
26     substituteInPlace setup.py --replace "distribute" "setuptools"
27   '';
29   propagatedBuildInputs = [ markdown ];
31   doCheck = false;
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   };