nixpkgs/pkgs/development/python-modules/pypandoc/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

32 lines
1 KiB
Nix

{ stdenv, buildPythonPackage, fetchPypi
, pip, pandoc, glibcLocales, haskellPackages, texlive }:
buildPythonPackage rec {
pname = "pypandoc";
version = "1.3.3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0628f2kn4gqimnhpf251fgzl723hwgyl3idy69dkzyjvi45s5zm6";
};
# Fix tests: first requires network access, second is a bug (reported upstream)
preConfigure = ''
substituteInPlace tests.py --replace "pypandoc.convert(url, 'html')" "'GPL2 license'"
substituteInPlace tests.py --replace "pypandoc.convert_file(file_name, lua_file_name)" "'<h1 id=\"title\">title</h1>'"
'';
LC_ALL="en_US.UTF-8";
propagatedBuildInputs = [ pip ];
buildInputs = [ pandoc texlive.combined.scheme-small haskellPackages.pandoc-citeproc glibcLocales ];
meta = with stdenv.lib; {
description = "Thin wrapper for pandoc";
homepage = https://github.com/bebraw/pypandoc;
license = licenses.mit;
maintainers = with maintainers; [ bennofs kristoff3r ];
};
}