View | Details | Raw Unified | Return to bug 229526
Collapse All | Expand All

(-)py-banal/Makefile (+22 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	banal
4
DISTVERSION=	0.3.7
5
CATEGORIES=	devel python
6
MASTER_SITES=	CHEESESHOP
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
9
MAINTAINER=	freebsd_ports@k-worx.org
10
COMMENT=	Commons of banal micro-functions for Python
11
12
LICENSE=	MIT
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
16
17
USES=		python
18
USE_PYTHON=	distutils autoplist
19
20
NO_ARCH=	yes
21
22
.include <bsd.port.mk>
(-)py-banal/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1530200787
2
SHA256 (banal-0.3.7.tar.gz) = 1b88caf2e12d96af55cebc5ed8293cdf847ee41c91c3e53e53e895c8b92ddce3
3
SIZE (banal-0.3.7.tar.gz) = 3692
(-)py-banal/pkg-descr (+19 lines)
Line 0 Link Here
1
Commons of Python micro-functions. This is basically an out-sourced, shared
2
utils module.
3
4
Rules:
5
6
- Must work in Python 2 and Python 3
7
- Cannot depend on anything but six and the standard library
8
9
Functions:
10
11
- is_sequence: check if something is list-ish
12
- is_mapping: check if an object is dict-ish
13
- ensure_list: make sure an argument is a list, or make it into a single-element
14
               list
15
- clean_dict: remove null values from a dict, recursively
16
- decode_path: decode a path name to be unicode
17
- hash_data: generate a SHA1 from a dict of reasonable objects
18
19
WWW: https://github.com/pudo/banal

Return to bug 229526