1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

math/py-pyreadstat: Add py-pyreadstat 1.2.8

pyreadstat is a python package to read and write sas (sas7bdat, sas7bcat,
xport), spps (sav, zsav, por) and stata (dta) data files into/from pandas
dataframes.
This commit is contained in:
Po-Chuan Hsieh 2024-11-03 21:20:44 +08:00
parent 5f1575b6a0
commit f452d7b439
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
5 changed files with 46 additions and 0 deletions

View File

@ -1055,6 +1055,7 @@
SUBDIR += py-pyodesys
SUBDIR += py-pyprobables
SUBDIR += py-pyreadr
SUBDIR += py-pyreadstat
SUBDIR += py-pyrr
SUBDIR += py-pysmt
SUBDIR += py-pystan

View File

@ -0,0 +1,25 @@
PORTNAME= pyreadstat
PORTVERSION= 1.2.8
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Read and Write SAS, SPSS and Stata files into/from pandas data frames
WWW= https://ofajardo.github.io/pyreadstat_documentation/_build/html/ \
https://github.com/Roche/pyreadstat
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pandas>=1.2.0,1:math/py-pandas@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent cython pep517
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1730540890
SHA256 (pyreadstat-1.2.8.tar.gz) = ced3f261659f10d23843e36ec3ad6699fcac9a863820e53c6fb4b6c1abcf9e94
SIZE (pyreadstat-1.2.8.tar.gz) = 560144

View File

@ -0,0 +1,14 @@
--- setup.py.orig 2024-10-18 20:21:39 UTC
+++ setup.py
@@ -26,11 +26,6 @@ if PY_MAJOR_VERSION < 3 and os.name == 'nt':
if PY_MAJOR_VERSION < 3 and os.name == 'nt':
raise Exception("Python 2 is not supported on Windows.")
-cyver = int(Cython.__version__.split(".")[0])
-if cyver < 3:
- msg = "Cython version 3 or newer required"
- raise Exception(msg)
-
ext = '.pyx'

View File

@ -0,0 +1,3 @@
pyreadstat is a python package to read and write sas (sas7bdat, sas7bcat,
xport), spps (sav, zsav, por) and stata (dta) data files into/from pandas
dataframes.