mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
paramiko, bump version, add python{3.8,3.9,3.10} (#7217)
This commit is contained in:
94
dev-python/paramiko/paramiko-2.11.0.recipe
Normal file
94
dev-python/paramiko/paramiko-2.11.0.recipe
Normal file
@@ -0,0 +1,94 @@
|
||||
SUMMARY="Pure python SSH implementation"
|
||||
DESCRIPTION="Paramiko is a module for python 2.2 (or higher) that implements \
|
||||
the SSH2 protocol for secure (encrypted and authenticated) connections to \
|
||||
remote machines."
|
||||
HOMEPAGE="https://www.lag.net/paramiko/"
|
||||
COPYRIGHT="2003-2009 Robey Pointer"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.io/packages/source/p/paramiko/paramiko-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="003e6bee7c034c21fbb051bf83dc0a9ee4106204dd3c53054c71452cc4ec3938"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libffi$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python3 python38 python39 python310)
|
||||
PYTHON_VERSIONS=(3.7 3.8 3.9 3.10)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
eval "PROVIDES_${pythonPackage}=\"\
|
||||
${portName}_$pythonPackage = $portVersion\
|
||||
\"; \
|
||||
REQUIRES_$pythonPackage=\"\
|
||||
haiku$secondaryArchSuffix\n\
|
||||
bcrypt_$pythonPackage\n\
|
||||
cryptography_$pythonPackage\n\
|
||||
pynacl_$pythonPackage\n\
|
||||
pyasn1_$pythonPackage\n\
|
||||
six_$pythonPackage\n\
|
||||
cmd:python$pythonVersion\
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage
|
||||
"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
TEST_REQUIRES="$TEST_REQUIRES
|
||||
bcrypt_$pythonPackage
|
||||
cryptography_$pythonPackage
|
||||
importlib_metadata_$pythonPackage
|
||||
# invoke_$pythonPackage
|
||||
# pytest_relaxed_$pythonPackage
|
||||
mock_$pythonPackage
|
||||
pynacl_$pythonPackage
|
||||
pytest_$pythonPackage
|
||||
six_$pythonPackage
|
||||
tomli_$pythonPackage
|
||||
typing_extentions_$pythonPackage
|
||||
lib:libsodium$secondaryArchSuffix
|
||||
"
|
||||
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
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
done
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
pytest$pythonVersion
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user