From aaec8fb9f1ab299b399793fe5b86f60a7c3f8f88 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Mon, 29 Feb 2016 18:40:32 +0100 Subject: [PATCH] vim-plugins: add vimprivewpandoc and needed python modules --- pkgs/misc/vim-plugins/default.nix | 21 ++++++++++++ pkgs/misc/vim-plugins/vim-plugin-names | 2 ++ pkgs/top-level/python-packages.nix | 46 ++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) diff --git a/pkgs/misc/vim-plugins/default.nix b/pkgs/misc/vim-plugins/default.nix index 83dcab35e67..5b32a1b49ea 100644 --- a/pkgs/misc/vim-plugins/default.nix +++ b/pkgs/misc/vim-plugins/default.nix @@ -1682,4 +1682,25 @@ rec { }; + vim-pandoc-after = buildVimPluginFrom2Nix { # created by nix#NixDerivation + name = "vim-pandoc-after-2015-06-01"; + src = fetchgit { + url = "git://github.com/vim-pandoc/vim-pandoc-after"; + rev = "4377665e5c98f29ea838deb3b942200b8dd096ef"; + sha256 = "1di82bgi7sjn7lmma7g9zbdraamsy9c6g7ms6jgglfvynbbvmgg0"; + }; + dependencies = []; + + }; + + vimpreviewpandoc = buildVimPluginFrom2Nix { # created by nix#NixDerivation + name = "vimpreviewpandoc-2016-03-03"; + src = fetchgit { + url = "git://github.com/tex/vimpreviewpandoc"; + rev = "7c05b4a7bf55a361c7ac33e6e05f7965daed5889"; + sha256 = "12xnnsvdsl2wc7fy537pdk6s3nfxw46g1l4xqr0fxzhz712nczk5"; + }; + dependencies = []; + + }; } diff --git a/pkgs/misc/vim-plugins/vim-plugin-names b/pkgs/misc/vim-plugins/vim-plugin-names index 5102d6cde1c..2b8d71b8760 100644 --- a/pkgs/misc/vim-plugins/vim-plugin-names +++ b/pkgs/misc/vim-plugins/vim-plugin-names @@ -68,6 +68,7 @@ "github:shougo/vimshell.vim" "github:sjl/gundo.vim" "github:takac/vim-hardtime" +"github:tex/vimpreviewpandoc" "github:thinca/vim-quickrun" "github:tomasr/molokai" "github:tpope/vim-eunuch" @@ -77,6 +78,7 @@ "github:vim-airline/vim-airline-themes" "github:vim-pandoc/vim-pandoc" "github:vim-pandoc/vim-pandoc-syntax" +"github:vim-pandoc/vim-pandoc-after" "github:vim-scripts/Colour-Sampler-Pack" "github:vim-scripts/a.vim" "github:vim-scripts/align" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 429acdd6347..68a71864933 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -26541,4 +26541,50 @@ in modules // { platforms = platforms.linux; }; }; + pandocfilters = buildPythonPackage rec{ + version = "1.3.0"; + pname = "pandocfilters"; + name = pname + "-${version}"; + + src = pkgs.fetchFromGitHub { + owner = "jgm"; + repo = pname; + rev = version; + sha256 = "0ky9k800ixwiwvra0na6d6qaqcyps83mycgd8qvkrn5r80hddkzz"; + }; + + propagatedBuildInputs = with self; [ ]; + + meta = { + description = "A python module for writing pandoc filters, with a collection of examples"; + homepage = https://github.com/jgm/pandocfilters; + license = licenses.mit; + maintainers = with maintainers; []; + }; + }; + + htmltreediff = buildPythonPackage rec{ + version = "0.1.2"; + pname = "htmltreediff"; + name = pname + "-${version}"; + + # Does not work with Py >= 3 + disabled = !isPy27; + + src = pkgs.fetchFromGitHub { + owner = "christian-oudard"; + repo = pname; + rev = "v" + version; + sha256 = "16mqp2jyznrw1mgd3qzybq28h2k5wz7vmmz1m6xpgscazyjhvvd1"; + }; + + propagatedBuildInputs = with self; [ lxml html5lib ]; + + meta = { + description = " Structure-aware diff for html and xml documents"; + homepage = https://github.com/christian-oudard/htmltreediff; + license = licenses.bsdOriginal; + maintainers = with maintainers; []; + }; + }; }