mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 10:31:20 +02:00
add py-8
This commit is contained in:
19
python/py-simplejson/Makefile
Normal file
19
python/py-simplejson/Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
# Created by: Alexander Botero-Lowry <alex@foxybanana.com>
|
||||
# $FreeBSD: head/devel/py-simplejson/Makefile 522961 2020-01-13 17:49:17Z sunpoet $
|
||||
|
||||
PORTNAME= simplejson
|
||||
PORTVERSION= 3.17.0
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= python@FreeBSD.org
|
||||
COMMENT= Simple, fast, extensible JSON encoder/decoder
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/simplejson/_speedups.so
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
python/py-simplejson/distinfo
Normal file
3
python/py-simplejson/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1578923324
|
||||
SHA256 (simplejson-3.17.0.tar.gz) = 2b4b2b738b3b99819a17feaf118265d0753d5536049ea570b3c43b51c4701e81
|
||||
SIZE (simplejson-3.17.0.tar.gz) = 83119
|
||||
37
python/py-simplejson/files/patch-setup.py
Normal file
37
python/py-simplejson/files/patch-setup.py
Normal file
@@ -0,0 +1,37 @@
|
||||
--- setup.py.orig 2016-10-21 07:55:07 UTC
|
||||
+++ setup.py
|
||||
@@ -64,25 +64,8 @@ class ve_build_ext(build_ext):
|
||||
raise BuildFailed()
|
||||
|
||||
|
||||
-class TestCommand(Command):
|
||||
- user_options = []
|
||||
-
|
||||
- def initialize_options(self):
|
||||
- pass
|
||||
-
|
||||
- def finalize_options(self):
|
||||
- pass
|
||||
-
|
||||
- def run(self):
|
||||
- import sys, subprocess
|
||||
- raise SystemExit(
|
||||
- subprocess.call([sys.executable,
|
||||
- # Turn on deprecation warnings
|
||||
- '-Wd',
|
||||
- 'simplejson/tests/__init__.py']))
|
||||
-
|
||||
def run_setup(with_binary):
|
||||
- cmdclass = dict(test=TestCommand)
|
||||
+ cmdclass = dict()
|
||||
if with_binary:
|
||||
kw = dict(
|
||||
ext_modules = [
|
||||
@@ -105,6 +88,7 @@ def run_setup(with_binary):
|
||||
license="MIT License",
|
||||
packages=['simplejson', 'simplejson.tests'],
|
||||
platforms=['any'],
|
||||
+ test_suite='simplejson.tests',
|
||||
**kw)
|
||||
|
||||
try:
|
||||
15
python/py-simplejson/pkg-descr
Normal file
15
python/py-simplejson/pkg-descr
Normal file
@@ -0,0 +1,15 @@
|
||||
simplejson is a simple, fast, extensible JSON encoder/decoder for Python
|
||||
|
||||
simplejson is compatible with Python 2.4 and later with no external
|
||||
dependencies. It covers the full JSON specification for both encoding and
|
||||
decoding, with unicode support. By default, encoding is done in an encoding
|
||||
neutral fashion (plain ASCII with \uXXXX escapes for unicode characters).
|
||||
|
||||
The encoder may be subclassed to provide serialization in any kind of situation,
|
||||
without any special support by the objects to be serialized (somewhat like
|
||||
pickle).
|
||||
|
||||
The decoder can handle incoming JSON strings of any specified encoding (UTF-8 by
|
||||
default).
|
||||
|
||||
WWW: https://pypi.org/project/simplejson/
|
||||
Reference in New Issue
Block a user