Package Details: diceware 1.0.1-1

Git Clone URL: https://aur.archlinux.org/diceware.git (read-only, click to copy)
Package Base: diceware
Description: Wordlist-based password generator
Upstream URL: https://github.com/ulif/diceware/
Licenses: GPL-3.0-or-later
Submitter: ClawOfLight
Maintainer: ClawOfLight
Last Packager: ClawOfLight
Votes: 20
Popularity: 0.020302
First Submitted: 2017-01-07 12:48 (UTC)
Last Updated: 2025-01-17 09:53 (UTC)

Required by (1)

Sources (1)

Latest Comments

ClawOfLight commented on 2025-01-17 09:55 (UTC)

I updated the package, sorry for the delay and thanks for the patches :)

gesh commented on 2025-01-14 18:25 (UTC)

@barbuk Note python-setuptools is still a makedepends. It's commonly installed, which is probably why you missed it. Also, recall RFC 16 asks for SPDX-formatted licenses. Finally, given upstream provides a manual and tests, it's a shame not to add them. Therefore, I instead propose:

pkgname='diceware'
pkgver=1.0.1
pkgrel=1
pkgdesc='Wordlist-based password generator'
url="https://github.com/ulif/diceware/"
depends=('python')
makedepends=(
    'python-build' 'python-installer' 'python-wheel' 'python-setuptools'
    'python-sphinx'
    'python-sphinx_rtd_theme'
    )
checkdepends=(
    'python-pytest'
    'python-pytest-cov'
    'python-coverage'
)
license=('GPL-3.0-or-later')
arch=('any')
source=("${pkgname}-${pkgver}::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('3a3686a48b8c97341d53e17d0f0c13775ddffde51ee271870072c731f05aa1bb')

build() {
    cd "${pkgname}-${pkgver}"
    python -m build --wheel --no-isolation
    rst2man docs/manpage.rst > dist/diceware.1
}

check() {
    cd "${pkgname}-${pkgver}"
    python -m pytest
}

package() {
    cd "${pkgname}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
    install -Dm644 dist/diceware.1 -t "$pkgdir"/usr/share/man/man1/
}

barbuk commented on 2025-01-12 12:29 (UTC)

The new version can be installed by following the python package guideline:

# Maintainer: Bennett Piater <bennett at piater dot name>

pkgname=diceware
pkgver=1.0.1
pkgrel=1
pkgdesc="Wordlist-based password generator."
arch=('any')
url="https://github.com/ulif/diceware"
license=('GPL3')
depends=('python')
makedepends=(python-build python-installer python-wheel)
source=("$pkgname-$pkgver.tar.gz::https://github.com/ulif/${pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('c29eebf05eba87b9f9b7845aa392eb50e74b7f9d7361e93ae19aa6343da39f030b00caf2d5e29499d8c9b714e5b7caccdefe5eafb6f78e780a5ca61c737a6513')

build() {
    cd "$srcdir/$pkgname-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}

# vim:set ts=2 sw=2 et

gesh commented on 2024-12-23 14:51 (UTC)

Note: Package needs to be rebuilt for Python 3.13 (a bump to pkgrel suffices)

gesh commented on 2024-03-25 13:54 (UTC)

The addition of python-pip is unnecessary, just convert to PEP517:

depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel')
license=('GPL-3.0-or-later')

build() {
    cd "${srcdir}/${_src_folder}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${srcdir}/${_src_folder}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
}

netzego commented on 2023-11-03 20:44 (UTC) (edited on 2023-11-03 20:46 (UTC) by netzego)

doesn't build anymore. this need to be fixed in diceware upstream. pr is on github: https://github.com/ulif/diceware/pull/97

/usr/lib/python3.11/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!

pants commented on 2023-05-03 19:47 (UTC)

python-setuptools needs to be in makedepends to build this package.

ClawOfLight commented on 2021-02-23 18:42 (UTC)

I added python-pip as makedepend and bumped pkgrel, thanks for bringing this up!

e202b15315d6

crasm commented on 2021-02-21 22:30 (UTC)

Hello, this package fails to build unless you have python-pip installed. Can you add it to the makedepends?

makedepends=('python-pip')