🔒 Repository is read-only – file editing is disabled.

recipes/core/python-hatchling/PAGBUILD.yaml main

45 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233343536373839404142434445
pkgname: python-hatchling
pkgver: '1.30.1'
pkgrel: '1'
pkgdesc: Extensible, standards-compliant Python build backend
url: 'https://hatch.pypa.io/latest/'
arch: x86_64
license:
- MIT
depends:
- python
- python-pathspec
- python-pluggy
- python-packaging
- python-trove-classifiers
makedepends:
- python
- python-wheel
- python-pathspec
- python-pluggy
- python-packaging
- python-trove-classifiers
source:
- 'https://pypi.org/packages/source/h/hatchling/hatchling-${pkgver}.tar.gz'
sha256sums:
- eee4fd45357f72ebb3d7a42e5d72cfb5e29ed426d79e8836288926c4258d5f2e
build: |
  cd hatchling-${pkgver}

  # Zbuduj wheel bez szukania w sieci
  pip3 wheel -w dist \
    --no-build-isolation \
    --no-deps $PWD

  # Zainstaluj z --no-deps, żeby pip nie próbował szukać paczek na PyPI
  pip3 install --no-index \
    --find-links dist \
    --no-cache-dir \
    --no-user \
    --no-deps \
    --root=${PKGDIR} \
    hatchling

  find ${PKGDIR} -type d \( -name vendor -o -name tests \) -exec rm -rf {} +
  install -Dm 644 LICENSE.txt ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE
package: 'true'