summaryrefslogtreecommitdiff
path: root/finance
diff options
context:
space:
mode:
authormef <mef@pkgsrc.org>2021-02-15 14:59:25 +0000
committermef <mef@pkgsrc.org>2021-02-15 14:59:25 +0000
commitc36c7f8ee6f7ca491a9c569eea43c86ed9ad4658 (patch)
treee348aa9ba2f444094cbd368c56b857a779ad146e /finance
parent806882cffb760be6cb2c687c4a34fd593102736f (diff)
downloadpkgsrc-c36c7f8ee6f7ca491a9c569eea43c86ed9ad4658.tar.gz
(finance/py-eth-hash) build fix for py36 (only)
py36 gives following flag: Traceback (most recent call last): File "setup.py", line 50, in <module> long_description = readme.read() File "/usr/pkg/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2861: ordinal not in range(128)
Diffstat (limited to 'finance')
-rw-r--r--finance/py-eth-hash/distinfo3
-rw-r--r--finance/py-eth-hash/patches/patch-setup.py23
2 files changed, 25 insertions, 1 deletions
diff --git a/finance/py-eth-hash/distinfo b/finance/py-eth-hash/distinfo
index c6277177d6b..4e089f5b96d 100644
--- a/finance/py-eth-hash/distinfo
+++ b/finance/py-eth-hash/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2021/02/07 19:59:48 adam Exp $
+$NetBSD: distinfo,v 1.3 2021/02/15 14:59:25 mef Exp $
SHA1 (eth-hash-0.3.1.tar.gz) = b1e90d8d74ae1b5a85b74ac922232876734eda4e
RMD160 (eth-hash-0.3.1.tar.gz) = 57c7e5b67d80d181e3a03b5149f80efe827bae6c
SHA512 (eth-hash-0.3.1.tar.gz) = 083aea8d1f6b0119bbdb4e52238ae614b8705794446a030eb1a0b60f6811c158b9613bf977c7f26151d4b00920941fa836e28ca7260505bda54e4f5da8f6b382
Size (eth-hash-0.3.1.tar.gz) = 5289683 bytes
+SHA1 (patch-setup.py) = 8da4ca9fdd58577c627df6662a3799d88e414138
diff --git a/finance/py-eth-hash/patches/patch-setup.py b/finance/py-eth-hash/patches/patch-setup.py
new file mode 100644
index 00000000000..96b8ceea4b1
--- /dev/null
+++ b/finance/py-eth-hash/patches/patch-setup.py
@@ -0,0 +1,23 @@
+$NetBSD: patch-setup.py,v 1.1 2021/02/15 14:59:25 mef Exp $
+
+py36 gives following flag:
+UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2861: ordinal not in range(128)
+
+--- setup.py.orig 2021-01-22 04:52:10.000000000 +0900
++++ setup.py 2021-02-15 23:50:09.430652835 +0900
+@@ -1,5 +1,6 @@
+ #!/usr/bin/env python
+ # -*- coding: utf-8 -*-
++import sys
+ from setuptools import (
+ setup,
+ find_packages,
+@@ -46,7 +47,7 @@ extras_require['dev'] = (
+ )
+
+
+-with open('./README.md') as readme:
++with open("./README.md", **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})) as readme:
+ long_description = readme.read()
+
+