Package Details: python-demjson 2.2.4-8

Git Clone URL: https://aur.archlinux.org/python-demjson.git (read-only, click to copy)
Package Base: python-demjson
Description: Encoder, decoder, and lint/validator for JSON (JavaScript Object Notation) compliant with RFC 7159
Upstream URL: https://github.com/dmeranda/demjson
Keywords: jsonlint
Licenses: LGPL3
Conflicts: demjson, nodejs-jsonlint
Provides: demjson
Replaces: demjson
Submitter: ainola
Maintainer: lkrms
Last Packager: lkrms
Votes: 1
Popularity: 0.000009
First Submitted: 2021-12-28 21:40 (UTC)
Last Updated: 2024-02-27 14:06 (UTC)

Latest Comments

1 2 Next › Last »

FabioLolix commented on 2022-02-19 12:55 (UTC)

Thanks for the very quick fix, would you like to patch python-fudge too and send it to the maintainer? https://aur.archlinux.org/packages/python-fudge (btw, patching belong to the prepare() function)

FabioLolix commented on 2022-02-18 18:40 (UTC)

Hello, fails to build

==> Starting build()...
error in demjson setup command: use_2to3 is invalid.
==> ERROR: A failure occurred in build().
    Aborting...

rien333 commented on 2021-12-29 12:43 (UTC)

@lkrms: thanks for your work!

lkrms commented on 2021-12-29 04:23 (UTC)

Done: https://aur.archlinux.org/packages/python-demjson3

It's a separate project with a different owner, so it definitely belongs in its own package :)

lkrms commented on 2021-12-29 04:02 (UTC)

Thanks, ainola :)

I'm not sure who was maintaining python-demjson previously, but I've claimed and tidied it up a bit... happy to co-maintain or disown if preferred, though.

rien333, I've just been looking at how demjson and demjson3 are listed (e.g. here). Both packages are still available, and demjson3 is (officially) still in beta, so in keeping with convention, I'll add a separate python-demjson3 package shortly. (Just testing it locally now.)

Thanks all :)

ainola commented on 2021-12-28 21:50 (UTC)

rien333 and the previous maintainer: This has been merged into python-demjson. In the process this booted the maintainer, so please do claim it!

rien333 commented on 2021-12-27 14:36 (UTC) (edited on 2021-12-27 14:38 (UTC) by rien333)

This is the PKGBUILD I came up with, which is more to the standards of arch python-packaging. I also think the license is wrong; should be GPL (or at least I see no mention of BSD somewhere)

# Maintainer: Rijnder Wever <rien334 at gmail dot com>

_pkgname=demjson3
pkgname=python-demjson
pkgver=3.0.5
pkgrel=1
pkgdesc="Python module for encoding, decoding, and syntax-checking JSON data"
url="https://github.com/nielstron/demjson3"
depends=('python')
makedepends=('python-setuptools')
license=('BSD')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('ab9aabdd85695f3684fc296f39766a2730f6c8de81d23f7048073dfe2f616d80')

build () {
     cd ${_pkgname}-${pkgver}
     python setup.py build
}

package() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}

rien333 commented on 2021-12-27 13:54 (UTC)

Skip that, arch should actually be packaging demjson 3 now that python2 is dead and the author has stopped hosting/developing the older demjson. See https://pypi.org/project/demjson3/.

rien333 commented on 2021-12-27 13:42 (UTC) (edited on 2021-12-27 13:43 (UTC) by rien333)

The arch naming scheme for python modules is python-[package-name]. This will make the package more findable. Any change you could chance the name?

lkrms commented on 2020-12-27 05:12 (UTC)

Hi

Suggested changes:

  • Replace defunct URL with https://github.com/dmeranda/demjson
  • Change depends and makedepends to ('python') and ('python-setuptools') respectively
  • Add provides=('python-demjson') and conflicts=('nodejs-jsonlint')

PKGBUILD here: http://ix.io/2JGp