[gentoo-commits] repo/proj/guru:master commit in: net-p2p/nuxhash/

2020-07-03 Thread Andrew Ammerlaan
commit: ee552316ae732521068dabfbc70914e2d6491857
Author: Alexey Sokolov  asokolov  org>
AuthorDate: Thu Jul  2 23:01:57 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Thu Jul  2 23:01:57 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ee552316

net-p2p/nuxhash: add tests

They are broken though

Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Alexey Sokolov  asokolov.org>

 net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild 
b/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
index 62d08e3..170154d 100644
--- a/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
+++ b/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
@@ -16,6 +16,7 @@ LICENSE="GPL-3 excavator-EULA"
 SLOT="0"
 IUSE="gui"
 KEYWORDS="~amd64"
+RESTRICT="test"
 
 RDEPEND="
dev-libs/libbsd
@@ -39,3 +40,9 @@ python_prepare_all() {
use gui || eapply 
"${FILESDIR}/nuxhash-1.0.0_beta2_p20191013-remove-gui.patch"
distutils-r1_python_prepare_all
 }
+
+python_test() {
+   for t in tests/test_*.py; do
+   "${EPYTHON}" "${t}" || die
+   done
+}



[gentoo-commits] repo/proj/guru:master commit in: net-p2p/nuxhash/

2020-06-29 Thread Andrew Ammerlaan
commit: c16babce4157da96de7ce1d01d1a063fcf97f619
Author: Alexey Sokolov  asokolov  org>
AuthorDate: Sat Jun 27 15:52:41 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Sat Jun 27 15:52:41 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c16babce

net-p2p/nuxhash: add the comment about license

Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Alexey Sokolov  asokolov.org>

 net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild 
b/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
index aa10072..bab8c55 100644
--- a/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
+++ b/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
@@ -11,6 +11,7 @@ DESCRIPTION="NiceHash cryptocurrency mining client for Linux"
 HOMEPAGE="https://github.com/YoRyan/nuxhash;
 
 
SRC_URI="https://github.com/YoRyan/nuxhash/archive/33e9a095a41a6828959927f867efe4d2df398ede.tar.gz
 -> ${P}.tar.gz"
+# Nuxhash itself is GPL, but it downloads the excavator proprietary blob on 
startup
 LICENSE="GPL-3 excavator-EULA"
 SLOT="0"
 IUSE="gui"



[gentoo-commits] repo/proj/guru:master commit in: net-p2p/nuxhash/, net-p2p/nuxhash/files/

2020-06-29 Thread Andrew Ammerlaan
commit: 603c4bf40fbaeafae18d1859c45ee64d324f7a7a
Author: Alexey Sokolov  asokolov  org>
AuthorDate: Sat Jun 27 11:22:03 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Sat Jun 27 11:25:40 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=603c4bf4

net-p2p/nuxhash: new package

Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Alexey Sokolov  asokolov.org>

 net-p2p/nuxhash/Manifest   |  1 +
 .../nuxhash-1.0.0_beta2_p20191013-fixurl.patch | 26 ++
 .../nuxhash-1.0.0_beta2_p20191013-remove-gui.patch | 12 +++
 net-p2p/nuxhash/metadata.xml   | 11 ++
 .../nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild   | 40 ++
 5 files changed, 90 insertions(+)

diff --git a/net-p2p/nuxhash/Manifest b/net-p2p/nuxhash/Manifest
new file mode 100644
index 000..4c82435
--- /dev/null
+++ b/net-p2p/nuxhash/Manifest
@@ -0,0 +1 @@
+DIST nuxhash-1.0.0_beta2_p20191013.tar.gz 783977 BLAKE2B 
5dd50bd1d62193775b7146d078e4eae62247e1e469ed1966ecab31bf7899d38ddbe31babbf450a165e78c86bc4482f0a7a769225bd2f018515b90255184d8781
 SHA512 
1d2bb4cc73fd3a9c2e6964d2208ffe8362444bc03c7c2382b4df4231a311daa72026e1d80de347d77765f6ec92af5e339e2d10fdbff7d5272b8fdf8421a5656f

diff --git a/net-p2p/nuxhash/files/nuxhash-1.0.0_beta2_p20191013-fixurl.patch 
b/net-p2p/nuxhash/files/nuxhash-1.0.0_beta2_p20191013-fixurl.patch
new file mode 100644
index 000..91e2f56
--- /dev/null
+++ b/net-p2p/nuxhash/files/nuxhash-1.0.0_beta2_p20191013-fixurl.patch
@@ -0,0 +1,26 @@
+Nicehash URL has changed
+
+https://github.com/YoRyan/nuxhash/issues/54
+
+--- a/nuxhash/nicehash.py  2019-10-13 06:10:40.0 +0100
 b/nuxhash/nicehash.py  2020-05-10 02:50:26.531802156 +0100
+@@ -24,7 +24,7 @@
+ address = nx_settings['nicehash']['wallet']
+ 
+ response = nh.public_api(HOST).request(
+-'GET', f'/main/api/v2/mining/external/{address}/rigs/', '', None)
++'GET', f'/main/api/v2/mining/external/{address}/rigs2/', '', None)
+ unpaid = response.get('unpaidAmount', None)
+ if response.get('externalAddress', True):
+ wallet = response.get('externalBalance', None)
+--- a/nuxhash/nhrest/python/nicehash.py2019-10-13 06:10:40.0 
+0100
 b/nuxhash/nhrest/python/nicehash.py2020-05-10 02:55:38.189794255 
+0100
+@@ -162,7 +162,7 @@
+ return algo_setting
+ 
+ def get_accounts(self):
+-return self.request('GET', '/main/api/v2/accounting/accounts/', '', 
None)
++return self.request('GET', '/main/api/v2/accounting/accounts2/', '', 
None)
+ 
+ def get_accounts_for_currency(self, currency):
+ return self.request('GET', '/main/api/v2/accounting/account/' + 
currency, '', None)

diff --git 
a/net-p2p/nuxhash/files/nuxhash-1.0.0_beta2_p20191013-remove-gui.patch 
b/net-p2p/nuxhash/files/nuxhash-1.0.0_beta2_p20191013-remove-gui.patch
new file mode 100644
index 000..1d86a23
--- /dev/null
+++ b/net-p2p/nuxhash/files/nuxhash-1.0.0_beta2_p20191013-remove-gui.patch
@@ -0,0 +1,12 @@
+Disable GUI if USE=-gui
+
+--- a/setup.py 2020-06-27 00:24:01.872723504 +0100
 b/setup.py 2020-06-27 00:30:12.885365693 +0100
+@@ -185,7 +185,6 @@
+ entry_points={  # Optional
+ 'console_scripts': [
+ 'nuxhashd=nuxhash:nuxhashd',
+-'nuxhash-gui=nuxhash:nuxhash_gui'
+ ],
+ },
+ 

diff --git a/net-p2p/nuxhash/metadata.xml b/net-p2p/nuxhash/metadata.xml
new file mode 100644
index 000..919e2c6
--- /dev/null
+++ b/net-p2p/nuxhash/metadata.xml
@@ -0,0 +1,11 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   alexey+gen...@asokolov.org
+   Alexey Sokolov
+   
+   
+   YoRyan/nuxhash
+   
+

diff --git a/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild 
b/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
new file mode 100644
index 000..aa10072
--- /dev/null
+++ b/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="NiceHash cryptocurrency mining client for Linux"
+HOMEPAGE="https://github.com/YoRyan/nuxhash;
+
+SRC_URI="https://github.com/YoRyan/nuxhash/archive/33e9a095a41a6828959927f867efe4d2df398ede.tar.gz
 -> ${P}.tar.gz"
+LICENSE="GPL-3 excavator-EULA"
+SLOT="0"
+IUSE="gui"
+KEYWORDS="~amd64"
+
+RDEPEND="
+   dev-libs/libbsd
+   dev-python/requests[${PYTHON_USEDEP}]
+   net-misc/curl
+   virtual/opencl
+   >=x11-drivers/nvidia-drivers-387
+   x11-libs/libxcb
+   x11-libs/libXau
+   x11-libs/libXdmcp
+   x11-libs/libXext
+   x11-libs/libX11
+   gui? ( dev-python/wxpython:4.0 )
+"
+
+PATCHES=(
+   

[gentoo-commits] repo/proj/guru:master commit in: net-p2p/nuxhash/

2020-06-29 Thread Andrew Ammerlaan
commit: 62527569fa422e30d7974c965001994d1358b272
Author: Alexey Sokolov  asokolov  org>
AuthorDate: Sat Jun 27 23:13:49 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Sat Jun 27 23:13:49 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=62527569

net-p2p/nuxhash: fix wx python dep

Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Alexey Sokolov  asokolov.org>

 net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild 
b/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
index bab8c55..62d08e3 100644
--- a/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
+++ b/net-p2p/nuxhash/nuxhash-1.0.0_beta2_p20191013.ebuild
@@ -28,7 +28,7 @@ RDEPEND="
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libX11
-   gui? ( dev-python/wxpython:4.0 )
+   gui? ( dev-python/wxpython:4.0[${PYTHON_USEDEP}] )
 "
 
 PATCHES=(