Package Details: python-cramjam 2.5.0-2

Git Clone URL: https://aur.archlinux.org/python-cramjam.git (read-only, click to copy)
Package Base: python-cramjam
Description: Thin Python bindings to de/compression algorithms in Rust
Upstream URL: https://github.com/milesgranger/pyrus-cramjam
Licenses: MIT
Submitter: thrasibule
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 0
Popularity: 0.000000
First Submitted: 2022-06-07 02:37 (UTC)
Last Updated: 2022-10-26 19:34 (UTC)

Latest Comments

levitsky commented on 2022-11-18 15:15 (UTC)

Hi, I'm having the following problem:

💥 maturin failed
  Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
  Caused by: `cargo metadata` exited with an error: cargo: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

Any help would be appreciated. Thank you!

flying-sheep commented on 2022-07-13 14:54 (UTC)

And checkdepends should contain python-hypothesis. Here’s a working PKGBUILD:

# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>

pkgname=python-cramjam
_pkgname=cramjam
pkgver=2.5.0
pkgrel=1
pkgdesc="Thin Python bindings to de/compression algorithms in Rust"
arch=('x86_64')
url="https://github.com/milesgranger/pyrus-cramjam"
license=('MIT')
depends=('python')
checkdepends=('python-memory-profiler' 'python-pytest' 'python-hypothesis')
optdepends=()
makedepends=(python-installer maturin rust)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('a92c0c2db4c6a3804eaffa253c7ca49f849e7a893a31c902a8123d7c36b2b487')

build(){
  cd "$_pkgname-$pkgver"
  maturin build --release --strip --interpreter python 
}

package(){
  cd "$_pkgname-$pkgver"
  python -m installer --destdir="$pkgdir" target/wheels/*.whl
  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}

check() {
  local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")

  cd $_pkgname-$pkgver
  rm -rf test_dir
  python -m installer --destdir=test_dir target/wheels/*.whl
  export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
  pytest -vv tests
}

# vim:ts=2:sw=2:et:

flying-sheep commented on 2022-07-13 14:50 (UTC)

Also the URL is wrong, should be https://github.com/milesgranger/pyrus-cramjam

flying-sheep commented on 2022-07-13 14:48 (UTC)

This is broken:

error: Found argument '--no-sdist' which wasn't expected, or isn't valid in this context

        Did you mean '--sdist'?

        If you tried to supply `--no-sdist` as a value rather than a flag, use `-- --no-sdist`

USAGE:
    maturin build --release --sdist

For more information try --help