summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.SRCINFO7
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD29
-rw-r--r--setup.patch23
4 files changed, 45 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 70c482b5aa1..8f1c1ba936f 100755
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,14 +5,13 @@ pkgbase = python-pynput
url = https://github.com/moses-palmer/pynput
arch = any
license = LGPL3
- makedepends = python-setuptools-lint
- makedepends = python-sphinx
- makedepends = python-wheel
+ makedepends = python-setuptools
depends = python-xlib
depends = python-six
depends = python-evdev
source = https://pypi.org/packages/source/p/pynput/pynput-1.7.3.tar.gz
+ source = setup.patch
sha256sums = 4e50b1a0ab86847e87e58f6d1993688b9a44f9f4c88d4712315ea8eb552ef828
+ sha256sums = c519290a88baa3e15be4bb6cff4d665a020b9e0c8c1241749670d58a48b07e2c
pkgname = python-pynput
-
diff --git a/.gitignore b/.gitignore
index 14f6ac911c8..f6d26664c68 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,4 +5,4 @@
!.gitignore
!PKGBUILD
!.SRCINFO
-!python-pynput.patch
+!setup.patch
diff --git a/PKGBUILD b/PKGBUILD
index 870f4246eff..9cdd3fd45bf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,21 +9,28 @@ arch=('any')
url="https://github.com/moses-palmer/pynput"
license=('LGPL3')
depends=('python-xlib' 'python-six' 'python-evdev')
-makedepends=('python-setuptools-lint' 'python-sphinx' 'python-wheel')
-source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('4e50b1a0ab86847e87e58f6d1993688b9a44f9f4c88d4712315ea8eb552ef828')
+makedepends=('python-setuptools')
+source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz"
+ 'setup.patch')
+sha256sums=('4e50b1a0ab86847e87e58f6d1993688b9a44f9f4c88d4712315ea8eb552ef828'
+ 'c519290a88baa3e15be4bb6cff4d665a020b9e0c8c1241749670d58a48b07e2c')
+
+prepare() {
+ cd "$_name-$pkgver"
+ patch -Np1 -i $srcdir/setup.patch
+}
build() {
- cd "$_name-$pkgver"
- python setup.py build
+ cd "$_name-$pkgver"
+ python setup.py build
}
package() {
- cd "$_name-$pkgver"
- export PYTHONHASHSEED=0
- python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ cd "$_name-$pkgver"
+ export PYTHONHASHSEED=0
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
- # Fix permissions
- find "$pkgdir" -type d -exec chmod -v 0755 {} \;
- find "$pkgdir" -type f -exec chmod -v 0644 {} \;
+ # Fix permissions
+ find "$pkgdir" -type d -exec chmod -v 0755 {} \;
+ find "$pkgdir" -type f -exec chmod -v 0644 {} \;
}
diff --git a/setup.patch b/setup.patch
new file mode 100644
index 00000000000..2b7be112cec
--- /dev/null
+++ b/setup.patch
@@ -0,0 +1,23 @@
+diff --unified --recursive --text pynput-1.7.3-a/setup.py pynput-1.7.3-b/setup.py
+--- pynput-1.7.3-a/setup.py 2021-02-10 09:50:04.000000000 -0700
++++ pynput-1.7.3-b/setup.py 2021-09-01 08:15:42.243368000 -0600
+@@ -21,11 +21,6 @@
+ RUNTIME_PACKAGES = [
+ 'six']
+
+-#: Additional requirements used during setup
+-SETUP_PACKAGES = [
+- 'setuptools-lint >=0.5',
+- 'sphinx >=1.3.1']
+-
+ #: Packages requires for different environments
+ EXTRA_PACKAGES = {
+ ':sys_platform == "darwin"': [
+@@ -90,7 +85,6 @@
+ long_description=README + '\n\n' + CHANGES,
+
+ install_requires=RUNTIME_PACKAGES,
+- setup_requires=RUNTIME_PACKAGES + SETUP_PACKAGES,
+ extras_require=EXTRA_PACKAGES,
+
+ author=INFO['author'],