pythonPackages.pypandoc: 2018-06-18 -> 1.5
This commit is contained in:
parent
a9655812a3
commit
0648fed704
@ -3,21 +3,21 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pypandoc";
|
pname = "pypandoc";
|
||||||
version = "unstable-2018-06-18";
|
version = "1.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bebraw";
|
owner = "bebraw";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "87912f0f17e0a71c1160008df708c876d32e5819";
|
rev = version;
|
||||||
sha256 = "0l6knkxxhmni4lx8hyvbb71svnhza08ivyklqlk5fw637gznc0hx";
|
sha256 = "1lpslfns6zxx7b0xr13bzg921lwrj5am8za0b2dviywk6iiib0ld";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# set pandoc path statically
|
# set pandoc path statically
|
||||||
sed -i '/^__pandoc_path = None$/c__pandoc_path = "${pandoc}/bin/pandoc"' pypandoc/__init__.py
|
sed -i '/^__pandoc_path = None$/c__pandoc_path = "${pandoc}/bin/pandoc"' pypandoc/__init__.py
|
||||||
|
|
||||||
# Fix tests: requires network access
|
# Skip test that requires network access
|
||||||
substituteInPlace tests.py --replace "pypandoc.convert(url, 'html')" "'GPL2 license'"
|
sed -i '/test_basic_conversion_from_http_url/i\\ @unittest.skip\("no network access during checkPhase"\)' tests.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user