diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2023-07-02 20:47:55 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-07-02 20:48:36 +0000 |
| commit | 7b56eeb7853ea875c93c10e77af3cb7e2b11799a (patch) | |
| tree | ccfe81dd0382d251f469fee6f2d4cf075809ac3d | |
| parent | 8f2c42142d37933e4e12eafa520386b740c2a7ba (diff) | |
devel/py-flatten-dict: New port: Utility for flattening and unflattening dict-like objects in Python
| -rw-r--r-- | devel/Makefile | 1 | ||||
| -rw-r--r-- | devel/py-flatten-dict/Makefile | 25 | ||||
| -rw-r--r-- | devel/py-flatten-dict/distinfo | 3 | ||||
| -rw-r--r-- | devel/py-flatten-dict/pkg-descr | 4 |
4 files changed, 33 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 04bbf8f29709..1f7359e54597 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4649,6 +4649,7 @@ SUBDIR += py-flask-babel SUBDIR += py-flatbuffers SUBDIR += py-flatdict + SUBDIR += py-flatten-dict SUBDIR += py-flex SUBDIR += py-flexmock SUBDIR += py-flit diff --git a/devel/py-flatten-dict/Makefile b/devel/py-flatten-dict/Makefile new file mode 100644 index 000000000000..18734ebdf4e3 --- /dev/null +++ b/devel/py-flatten-dict/Makefile @@ -0,0 +1,25 @@ +PORTNAME= flatten-dict +DISTVERSION= 0.4.2 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Utility for flattening and unflattening dict-like objects in Python +WWW= https://github.com/ianlini/flatten-dict + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.12:devel/py-six@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest + +MAKE_ENV= GIT_DIR=${WRKSRC} # workaround for the Poetry bug +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-flatten-dict/distinfo b/devel/py-flatten-dict/distinfo new file mode 100644 index 000000000000..854df089aa77 --- /dev/null +++ b/devel/py-flatten-dict/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1688322136 +SHA256 (flatten-dict-0.4.2.tar.gz) = 506a96b6e6f805b81ae46a0f9f31290beb5fa79ded9d80dbe1b7fa236ab43076 +SIZE (flatten-dict-0.4.2.tar.gz) = 10362 diff --git a/devel/py-flatten-dict/pkg-descr b/devel/py-flatten-dict/pkg-descr new file mode 100644 index 000000000000..9ae1fcad5b42 --- /dev/null +++ b/devel/py-flatten-dict/pkg-descr @@ -0,0 +1,4 @@ +This package provides a function flatten() for flattening dict-like objects in +Python. It also provides some key joining methods (reducer), and you can choose +the reducer you want or even implement your own reducer. You can also invert the +resulting flat dict using unflatten(). |
