1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-07 11:49:40 +00:00

devel/py-homebase: New port: Platform independent access to user data folders

This commit is contained in:
Yuri Victorovich 2022-08-14 09:52:03 -07:00
parent b4c4494405
commit a715017608
5 changed files with 41 additions and 0 deletions

View File

@ -4597,6 +4597,7 @@
SUBDIR += py-hgtools
SUBDIR += py-hidraw
SUBDIR += py-holidays
SUBDIR += py-homebase
SUBDIR += py-http-prompt
SUBDIR += py-humanize
SUBDIR += py-hvac

View File

@ -0,0 +1,22 @@
PORTNAME= homebase
DISTVERSION= 1.0.1
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Platform independent access to user data folders
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= python:3.7+
USE_PYTHON= distutils cython autoplist unittest # many tests fail, see https://github.com/dwavesystems/homebase/issues/35
USE_GITHUB= yes
GH_ACCOUNT= dwavesystems
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1660495132
SHA256 (dwavesystems-homebase-1.0.1_GH0.tar.gz) = 48f5ad503e85f5d9a815aeb96a57eadc13230a646bd99418ab06879e2a91261e
SIZE (dwavesystems-homebase-1.0.1_GH0.tar.gz) = 18185

View File

@ -0,0 +1,11 @@
--- test/test_homebase.py.orig 2022-08-14 16:40:47 UTC
+++ test/test_homebase.py
@@ -667,7 +667,7 @@ class TestHomebaseVirtualEnv(TestHomebase):
sys.prefix = sys.base_prefix
-@unittest.skipUnless(sys.platform.startswith('linux'), 'TestHomebaseLinuxXDG: Not Linux')
+@unittest.skipUnless(sys.platform.startswith('linux') or sys.platform.startswith('freebsd'), 'TestHomebaseLinuxXDG: Not Linux')
@unittest.skipIf('travis' in os.path.expanduser('~'), 'Skipping travis virtualenv tests for now.')
class TestHomebaseLinuxXDG(TestHomebase):

View File

@ -0,0 +1,4 @@
homebase provides a platform independent API for querying paths in which
applications can write caches, data, configs, and other information.
WWW: https://github.com/dwavesystems/homebase