From 7677b59d1a923946d05725eff7e010001ddee120 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Fri, 6 Oct 2023 17:12:55 -0400 Subject: [PATCH] nitroshare: work on python3 --- srcpkgs/nitroshare/patches/python3.patch | 13 +++++++++++++ srcpkgs/nitroshare/template | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/nitroshare/patches/python3.patch diff --git a/srcpkgs/nitroshare/patches/python3.patch b/srcpkgs/nitroshare/patches/python3.patch new file mode 100644 index 00000000000..f30aaaca3d5 --- /dev/null +++ b/srcpkgs/nitroshare/patches/python3.patch @@ -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') diff --git a/srcpkgs/nitroshare/template b/srcpkgs/nitroshare/template index 50f1a6f62a9..0850074b28c 100644 --- a/srcpkgs/nitroshare/template +++ b/srcpkgs/nitroshare/template @@ -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"