Browse Source

l/python-jsonschema: Upgraded to python-jsonschema-3.1.1.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
07ea95d62b
  1. 1
      l/python-jsonschema/jsonschema-2.6.0.tar.gz.sha256
  2. 1
      l/python-jsonschema/jsonschema-3.1.1.tar.gz.sha256
  3. 23
      l/python-jsonschema/python-jsonschema.SlackBuild

1
l/python-jsonschema/jsonschema-2.6.0.tar.gz.sha256

@ -1 +0,0 @@
6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02 jsonschema-2.6.0.tar.gz

1
l/python-jsonschema/jsonschema-3.1.1.tar.gz.sha256

@ -0,0 +1 @@
2fa0684276b6333ff3c0b1b27081f4b2305f0a36cf702a23db50edb141893c3f jsonschema-3.1.1.tar.gz

23
l/python-jsonschema/python-jsonschema.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2018 Damien Goutte-Gattat
# Copyright (C) 2018,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -25,13 +25,15 @@
# Latest jsonschema sourcecode is available at:
# <http://github.com/Julian/jsonschema>.
#
# Depends: l/python-functools32
# Note: l/python-functools32 is only needed under Python 2
#
# Depends: l/pyrsistent, l/python-attrs, l/python-importlib_metadata
# Optional: l/python-functools32
# Source package infos
NAMESRC=${NAMESRC:-jsonschema}
VERSION=${VERSION:-2.6.0}
VERSION=${VERSION:-3.1.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/58/b9/171dbb07e18c6346090a37f03c7e74410a1a56123f847efed59af260a298/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-jsonschema}
@ -60,8 +62,7 @@ fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -71,8 +72,10 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
@ -83,7 +86,9 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
python-functools32
pyrsistent
python-attrs
python-importlib_metadata
EOF
# Package the tree

Loading…
Cancel
Save