nitroshare: work on python3

This commit is contained in:
classabbyamp 2023-10-06 17:12:55 -04:00 committed by classabbyamp
parent 8e607d7173
commit 7677b59d1a
2 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,13 @@
--- a/src/dist/nitroshare.py.in
+++ b/src/dist/nitroshare.py.in
@@ -27,8 +27,8 @@
from json import loads
from os import path
-from urllib import url2pathname
-from urlparse import urlparse
+from urllib.request import url2pathname
+from urllib.parse import urlparse
import gi
gi.require_version('Gtk', '3.0')

View file

@ -1,7 +1,7 @@
# Template file for 'nitroshare'
pkgname=nitroshare
version=0.3.4
revision=1
revision=2
build_style=cmake
pycompile_dirs="usr/share/nautilus-python/extensions
usr/share/nemo-python/extensions
@ -15,7 +15,7 @@ license="MIT"
homepage="http://nitroshare.net"
distfiles="https://github.com/nitroshare/nitroshare-desktop/archive/${version}.tar.gz"
checksum=29874e5909c29211a3c9e13f8c0f49b901ec2996e5d60d80af80d2fb80c3d7ec
python_version=2 #unverified
python_version=3
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools"