mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04: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:
parent
5f1575b6a0
commit
f452d7b439
5 changed files with 46 additions and 0 deletions
|
@ -1055,6 +1055,7 @@
|
||||||
SUBDIR += py-pyodesys
|
SUBDIR += py-pyodesys
|
||||||
SUBDIR += py-pyprobables
|
SUBDIR += py-pyprobables
|
||||||
SUBDIR += py-pyreadr
|
SUBDIR += py-pyreadr
|
||||||
|
SUBDIR += py-pyreadstat
|
||||||
SUBDIR += py-pyrr
|
SUBDIR += py-pyrr
|
||||||
SUBDIR += py-pysmt
|
SUBDIR += py-pysmt
|
||||||
SUBDIR += py-pystan
|
SUBDIR += py-pystan
|
||||||
|
|
25
math/py-pyreadstat/Makefile
Normal file
25
math/py-pyreadstat/Makefile
Normal 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>
|
3
math/py-pyreadstat/distinfo
Normal file
3
math/py-pyreadstat/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TIMESTAMP = 1730540890
|
||||||
|
SHA256 (pyreadstat-1.2.8.tar.gz) = ced3f261659f10d23843e36ec3ad6699fcac9a863820e53c6fb4b6c1abcf9e94
|
||||||
|
SIZE (pyreadstat-1.2.8.tar.gz) = 560144
|
14
math/py-pyreadstat/files/patch-setup.py
Normal file
14
math/py-pyreadstat/files/patch-setup.py
Normal 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'
|
||||||
|
|
||||||
|
|
3
math/py-pyreadstat/pkg-descr
Normal file
3
math/py-pyreadstat/pkg-descr
Normal 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.
|
Loading…
Add table
Reference in a new issue