Package Details: python-pysodium 0.7.14-1

Git Clone URL: (read-only, click to copy)
Package Base: python-pysodium
Description: python libsodium wrapper
Upstream URL:
Licenses: BSD
Submitter: hrehfeld
Maintainer: hrehfeld
Last Packager: hrehfeld
Votes: 1
Popularity: 0.000000
First Submitted: 2019-01-20 16:12 (UTC)
Last Updated: 2023-10-23 19:56 (UTC)

Latest Comments

hrehfeld commented on 2023-10-23 19:52 (UTC)

Finally fixed, thanks for the patch!

micwoj92 commented on 2023-06-06 10:38 (UTC) (edited on 2023-06-06 10:39 (UTC) by micwoj92)

Hello, I have some small changes for this PKGBUILD:

-removed unnecessary lines from top

-removed unneeded build deps

-simplified license install path (current one is also wrong, because python on arch is 3.11"


diff --git a/PKGBUILD b/PKGBUILD
index 79c3ab8..9d694c8 100644
@@ -1,17 +1,15 @@
-# PKGBUILD generated by pipman
-# Python package author: Stefan Marsiske <>
 # Maintainer: Hauke Rehfeld <>
 pkgdesc="python libsodium wrapper"
-makedepends=("python" "python-pip" "python-wheel" python-build python-installer python-setuptools)
 depends=("libsodium" "python")
+makedepends=("python-build" "python-installer" "python-setuptools" "python-wheel")

@@ -24,7 +22,7 @@ package() {
   cd "$_pkgsubdir"
   python -m installer --destdir="$pkgdir" dist/*.whl

-  install -Dm644 "$pkgdir/usr/lib/python3.10/site-packages/${_name}-0.7.12.dist-info/LICENSE.txt" -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"


yan12125 commented on 2022-12-19 04:42 (UTC)

Thanks it works!

hrehfeld commented on 2022-12-18 13:36 (UTC)

Thanks! Should be fixed. I was calling tests wrongly, no idea why it worked on my system though :shrug:

yan12125 commented on 2022-12-18 06:46 (UTC)

Thanks! I also need two changes to make it build:

  • Append python-setuptools to makedepends
  • Add export PYTHONPATH="$PWD/.." before python

hrehfeld commented on 2022-12-17 22:41 (UTC)

@yan12125 finally found time to update according to your suggestions, can you take a look?

yan12125 commented on 2022-03-05 10:43 (UTC)

Well, generally it's preferred to let makepkg download source files instead of downloading things in build(). makepkg can guarantee downloaded files are the same as what package maintainers got (via checksums), not something else replaced or hacked.

Other changes are minor improvements: add check(), fix shebang to get rid of a namcap warning & remove site-packages/test, which often results in conflicts with other packages.

By the way, python-wheel is needed for the current PKGBUILD, otherwise egg-info is installed instead of dist-info, and the last command in package() fails.

hrehfeld commented on 2022-03-04 15:12 (UTC)

Can you explain what your PKGBUILD improves? What's wrong with using pip to install the package?

yan12125 commented on 2022-02-25 06:11 (UTC)

Here is an updated PKGBUILD with various fixes/improvements: