Files
haikuports/dev-python/alembic/alembic_python3-1.0.0.recipe
Adrien Destugues f0d6d8c107 Add some python packages.
Some gertty dependencies, more to come.
2018-07-28 18:08:01 +02:00

60 lines
1.8 KiB
Bash

SUMMARY="Database migration tool for SQLAlchemy"
DESCRIPTION="A database migrations tool written by the author of SQLAlchemy. \
It offers the following functionality:
* Can emit ALTER statements to a database in order to change the structure of \
tables and other constructs
* Provides a system whereby “migration scripts” may be constructed; each \
script indicates a particular series of steps that can “upgrade” a target \
database to a new version, and optionally a series of steps that can \
“downgrade” similarly, doing the same steps in reverse.
* Allows the scripts to execute in some sequential manner."
HOMEPAGE="https://pypi.org/project/alembic/"
COPYRIGHT="2011-2018 Mike Bayer"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://files.pythonhosted.org/packages/92/41/c01e9a2eaef90348cf7dea5054605c991633b5ca470574efe768b60ad5bc/alembic-$portVersion.tar.gz"
SOURCE_DIR="alembic-$portVersion"
CHECKSUM_SHA256="52d73b1d750f1414fa90c25a08da47b87de1e4ad883935718a8f36396e19e78e"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
cmd:alembic
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python3)
PYTHON_VERSIONS=(3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
done
}