Package Details: jc 1.16.0-1

Git Clone URL: https://aur.archlinux.org/jc.git (read-only, click to copy)
Package Base: jc
Description: serializes the output of command line tools to structured JSON
Upstream URL: https://github.com/kellyjonbrazil/jc
Licenses: MIT
Submitter: ImNtReal
Maintainer: ImNtReal
Last Packager: ImNtReal
Votes: 6
Popularity: 1.05
First Submitted: 2020-07-01 17:42
Last Updated: 2021-08-06 16:42

Latest Comments

polaris64 commented on 2021-08-07 10:06

The unit tests fail when building the latest version (1.16.0-1). Specifically it fails on the date parsing tests: -

-  'period': 'pm',
?             ^^

+  'period': 'PM',
?             ^^

My LANG is en_GB.UTF-8 and I noticed that tests should be run under en_US.UTF-8.

Changing line 21 of PKGBUILD to the following fixed the problem for me: -

  LANG=en_US.UTF-8 python setup.py test

ccorn commented on 2021-07-07 14:50

I have made some changes to my checkout:

  • Version update
  • fix for check (needs specific timezone setting, cf. issue-148)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Jameson Pugh <imntreal@gmail.com>

 pkgname=jc
-pkgver=1.14.0
+pkgver=1.15.4
 pkgrel=1
 pkgdesc="serializes the output of command line tools to structured JSON"
 arch=('any')
@@ -10,7 +10,7 @@ license=('MIT')
 depends=('python-pygments' 'python-ruamel-yaml' 'python-xmltodict')
 makedepends=('python-setuptools')
 source=("https://github.com/kellyjonbrazil/jc/archive/v${pkgver}.tar.gz")
-sha256sums=('a51ef10fe08bb806959c2ecc34845ec4ce9b5040a0d5b4006833bbd215cba914')
+sha256sums=('8ef2110c735d841dbb0ddf0c9eabe58ddb162032c24479790340fb5706786005')

 prepare(){
   cd "${srcdir}/${pkgname}-${pkgver}"
@@ -18,7 +18,7 @@ prepare(){

 check() {
   cd "${srcdir}/${pkgname}-${pkgver}"
-  python setup.py test
+  TZ=America/Los_Angeles python setup.py test
 }

 package() {

bartus commented on 2020-07-04 21:07

Dependencies are wrong, should be python-{pygments,ruamel_yaml,xmltodict}

requirements.txt

patch