3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.pypandoc: 2018-06-18 -> 1.5

This commit is contained in:
sternenseemann 2020-04-13 10:24:43 +02:00 committed by Jon
parent a9655812a3
commit 0648fed704

View file

@ -3,21 +3,21 @@
buildPythonPackage rec {
pname = "pypandoc";
version = "unstable-2018-06-18";
version = "1.5";
src = fetchFromGitHub {
owner = "bebraw";
repo = pname;
rev = "87912f0f17e0a71c1160008df708c876d32e5819";
sha256 = "0l6knkxxhmni4lx8hyvbb71svnhza08ivyklqlk5fw637gznc0hx";
rev = version;
sha256 = "1lpslfns6zxx7b0xr13bzg921lwrj5am8za0b2dviywk6iiib0ld";
};
postPatch = ''
# set pandoc path statically
sed -i '/^__pandoc_path = None$/c__pandoc_path = "${pandoc}/bin/pandoc"' pypandoc/__init__.py
# Fix tests: requires network access
substituteInPlace tests.py --replace "pypandoc.convert(url, 'html')" "'GPL2 license'"
# Skip test that requires network access
sed -i '/test_basic_conversion_from_http_url/i\\ @unittest.skip\("no network access during checkPhase"\)' tests.py
'';
preCheck = ''