George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / 
routersploit


Commits:
0b74f145 by loqs at 2026-06-05T15:34:20+01:00
Remove pkg_resources

Related https://archlinux.org/todo/python-pkg_resources-deprecation/.

- - - - -


4 changed files:

- .SRCINFO
- PKGBUILD
- REUSE.toml
- + routersploit-3.4.7-remove-pkg_resources.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -12,6 +12,7 @@ pkgbase = routersploit
        makedepends = git
        makedepends = python-build
        makedepends = python-installer
+       makedepends = python-setuptools
        makedepends = python-wheel
        depends = python
        depends = python-bluepy
@@ -20,16 +21,18 @@ pkgbase = routersploit
        depends = python-pycryptodome
        depends = python-pysnmp
        depends = python-requests
-       depends = python-setuptools
        depends = python-urllib3
        source = git+https://github.com/threat9/routersploit#tag=v3.4.7
        source = routersploit-python-3.13-compat-remove-telnet-support.patch
        source = routersploit-paramiko-remove-dsa-support.patch
+       source = routersploit-3.4.7-remove-pkg_resources.patch
        sha512sums = 
7d9bb5a97da2011329285a8d711dbb0e804ff4c7e7fd5e48a139a2c28cad2a12f51b4fd87b6bba495cf36dc311e9b78d867aa3b2e4828ee64d17ed5271d89989
        sha512sums = 
a8d777e2a97205ce4ed7ab36541db4648bb5c3bc43a46806a76eceb98b1a158da0dd0647cdeb2ae2e7a1041c31102ff22cb46af6ab4ab4256ff9e2bc72db8230
        sha512sums = 
4de0630a3480849704b3ef6272c2e9b6c2b56cc69b8e69921a68be92e204ddbde62e48913d214a4203c1246bf102cfa9302baf25fb7fb65dc751060a52ecfd31
+       sha512sums = 
05212c74fb4a853cea9c14848869bb48e67c581e210bc45b53773ee0b0b0ca90c26342ba6da6290eab2b4db94726e9643090fae56f9e3c0f6653a2d5fc6f1bdf
        b2sums = 
9cfd9e879999a8cb66f2e3ecdd2f5ee7b16e3399fa56001e01c9455d902713174160670c60997c7de63b59c4fb1fe186663f42afaa9b26d5b033712de28e73fc
        b2sums = 
cb806ef3235d61f4cd98a7979bffe192e232fd1127a05bf6acc49d435bd01290c5fcddc066fc336f6e5e8f4cf076156bf58253f3e76406ae3e4941488f74b9e8
        b2sums = 
a3a7f3ba4364ffb5d4642e306952ca34dafcf92144b2531cf41b6bcc67ac8fddf5cea5fdec16a6f8cd000ae877cc5b079b36204a0d00689eeb0fd49ed0a3880c
+       b2sums = 
673ac5ff6609c9b2df225090f937f1d874e1530d9af37db1081a1cf2330b8926d3cb9032f7a5a056ca95bd169c385e2c6107f429e2e2ae3b0c3b24a4e320f85b
 
 pkgname = routersploit


=====================================
PKGBUILD
=====================================
@@ -17,13 +17,13 @@ depends=(
   python-pycryptodome
   python-pysnmp
   python-requests
-  python-setuptools
   python-urllib3
 )
 makedepends=(
   git
   python-build
   python-installer
+  python-setuptools
   python-wheel
 )
 checkdepends=(
@@ -36,18 +36,22 @@ source=(
   "git+$url#tag=v$pkgver"
   "$pkgname-python-3.13-compat-remove-telnet-support.patch"
   "$pkgname-paramiko-remove-dsa-support.patch"
+  "$pkgname-3.4.7-remove-pkg_resources.patch"
 )
 
sha512sums=('7d9bb5a97da2011329285a8d711dbb0e804ff4c7e7fd5e48a139a2c28cad2a12f51b4fd87b6bba495cf36dc311e9b78d867aa3b2e4828ee64d17ed5271d89989'
             
'a8d777e2a97205ce4ed7ab36541db4648bb5c3bc43a46806a76eceb98b1a158da0dd0647cdeb2ae2e7a1041c31102ff22cb46af6ab4ab4256ff9e2bc72db8230'
-            
'4de0630a3480849704b3ef6272c2e9b6c2b56cc69b8e69921a68be92e204ddbde62e48913d214a4203c1246bf102cfa9302baf25fb7fb65dc751060a52ecfd31')
+            
'4de0630a3480849704b3ef6272c2e9b6c2b56cc69b8e69921a68be92e204ddbde62e48913d214a4203c1246bf102cfa9302baf25fb7fb65dc751060a52ecfd31'
+            
'05212c74fb4a853cea9c14848869bb48e67c581e210bc45b53773ee0b0b0ca90c26342ba6da6290eab2b4db94726e9643090fae56f9e3c0f6653a2d5fc6f1bdf')
 
b2sums=('9cfd9e879999a8cb66f2e3ecdd2f5ee7b16e3399fa56001e01c9455d902713174160670c60997c7de63b59c4fb1fe186663f42afaa9b26d5b033712de28e73fc'
         
'cb806ef3235d61f4cd98a7979bffe192e232fd1127a05bf6acc49d435bd01290c5fcddc066fc336f6e5e8f4cf076156bf58253f3e76406ae3e4941488f74b9e8'
-        
'a3a7f3ba4364ffb5d4642e306952ca34dafcf92144b2531cf41b6bcc67ac8fddf5cea5fdec16a6f8cd000ae877cc5b079b36204a0d00689eeb0fd49ed0a3880c')
+        
'a3a7f3ba4364ffb5d4642e306952ca34dafcf92144b2531cf41b6bcc67ac8fddf5cea5fdec16a6f8cd000ae877cc5b079b36204a0d00689eeb0fd49ed0a3880c'
+        
'673ac5ff6609c9b2df225090f937f1d874e1530d9af37db1081a1cf2330b8926d3cb9032f7a5a056ca95bd169c385e2c6107f429e2e2ae3b0c3b24a4e320f85b')
 
 prepare() {
   cd $pkgname
   patch -p1 < ../$pkgname-python-3.13-compat-remove-telnet-support.patch
   patch -p1 < ../$pkgname-paramiko-remove-dsa-support.patch
+  patch -p1 < ../$pkgname-3.4.7-remove-pkg_resources.patch
 }
 
 build() {


=====================================
REUSE.toml
=====================================
@@ -25,6 +25,7 @@ path = [
     "routersploit-drop-python-future.patch",
     "routersploit-python-3.13-compat-remove-telnet-support.patch",
     "routersploit-paramiko-remove-dsa-support.patch",
+    "routersploit-3.4.7-remove-pkg_resources.patch",
 ]
 SPDX-FileCopyrightText = "routersploit contributors"
 SPDX-License-Identifier = "BSD-3-Clause"


=====================================
routersploit-3.4.7-remove-pkg_resources.patch
=====================================
@@ -0,0 +1,17 @@
+diff --git a/routersploit/resources/wordlists/__init__.py 
b/routersploit/resources/wordlists/__init__.py
+index 26a332b..2699c1b 100644
+--- a/routersploit/resources/wordlists/__init__.py
++++ b/routersploit/resources/wordlists/__init__.py
+@@ -1,7 +1,7 @@
+-import pkg_resources
++import importlib.resources
+ 
+ 
+-defaults = 'file://' + pkg_resources.resource_filename(__name__, 
'defaults.txt')
+-passwords = 'file://' + pkg_resources.resource_filename(__name__, 
'passwords.txt')
+-usernames = 'file://' + pkg_resources.resource_filename(__name__, 
'usernames.txt')
+-snmp = 'file://' + pkg_resources.resource_filename(__name__, 'snmp.txt')
++defaults = 'file://' + str(importlib.resources.files(__name__) / 
'defaults.txt')
++passwords = 'file://' + str(importlib.resources.files(__name__) / 
'passwords.txt')
++usernames = 'file://' + str(importlib.resources.files(__name__) / 
'usernames.txt')
++snmp = 'file://' + str(importlib.resources.files(__name__) / 'snmp.txt')



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/routersploit/-/commit/0b74f145479ec2bfc42eccba6f3674271ab2a99f

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/routersploit/-/commit/0b74f145479ec2bfc42eccba6f3674271ab2a99f
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to