Package Details: python-technical 1.4.3-1

Git Clone URL: https://aur.archlinux.org/python-technical.git (read-only, click to copy)
Package Base: python-technical
Description: Various indicators developed or collected for the Freqtrade.
Upstream URL: https://github.com/freqtrade/technical
Licenses: GPL-3.0-or-later
Submitter: Thempra
Maintainer: Spixmaster
Last Packager: Spixmaster
Votes: 1
Popularity: 0.000000
First Submitted: 2021-05-12 19:03 (UTC)
Last Updated: 2024-03-13 10:25 (UTC)

Latest Comments

Spixmaster commented on 2022-12-27 18:39 (UTC) (edited on 2022-12-27 20:01 (UTC) by Spixmaster)

I investigated the problem and understand what you did. The tests are installed into /usr/lib/python3.10/site-packages/tests/ which should not be. Your patch is wrong as it only installs the python packages which are in the root directory but not those in directories. I fixed the PKGBUILD.

# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=python-technical
pkgver=1.3.0
pkgrel=2
epoch=1
pkgdesc='Various indicators developed or collected for the freqtrade'
url='https://github.com/freqtrade/technical'
arch=('any')
license=('GPL3')
depends=('python-arrow' 'python-pandas' 'python-ta-lib')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest' 'python-mock')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('8604750f1aced810c320a0a844f91511ae807bce8701d1599afedebef38b4aaa')

build()
{
    cd "technical-$pkgver"
    python -m build --wheel --no-isolation
}

check()
{
    cd "technical-$pkgver"
    pytest -x --disable-warnings
}

package()
{
    export PYTHONHASHSEED=0
    cd "technical-$pkgver"
    python -m installer --destdir="$pkgdir/" dist/*.whl
    install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"

    # TODO
    declare _site_packages
    _site_packages="$(python -c "import site; print(site.getsitepackages()[0])")"
    readonly _site_packages
    rm -r "${pkgdir}"/"${_site_packages}"/tests/
}

Spixmaster commented on 2022-12-25 16:44 (UTC)

I can ask but from my testing the patch is not needed. I installed the PKGBUILD without problem without the patch.

lmartinez-mirror commented on 2022-12-24 02:12 (UTC)

If that's the case, please (kindly) ask upstream if they'd be willing to cut a release. Otherwise I can upload a -git version of this package.

Spixmaster commented on 2022-12-22 10:21 (UTC)

This package is incomplete! As King_DuckZ mentioned import technical.indicators does not work. The reason is that the file is missing. Check with pacman -Ql python-technical and see yourself.

The solution is to remove the patch in the PKGBUILD. This can be done by commenting out the function prepare().

King_DuckZ commented on 2022-08-21 12:48 (UTC)

I think they stopped tagging releases and 1.3.0 is horribly outdated at this point. For example import technical.indicators doesn't work as indicators is not available in 1.3 but it's clearly there in the upstream repo.

AchmadFathoni commented on 2022-02-08 15:52 (UTC)

I think there is typo, the pkg's version should be 1.3.0