Skip to content

Commit

Permalink
addpkg: python-py-evm
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeonacid committed Jan 14, 2025
1 parent f1f9022 commit 5fb6911
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
4 changes: 4 additions & 0 deletions archlinuxcn/python-py-evm/.nvchecker.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[python-py-evm]
source = "pypi"
pypi = "py_evm"
use_pre_release = true
27 changes: 27 additions & 0 deletions archlinuxcn/python-py-evm/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Maintainer: Xeonacid <[email protected]>

_name=py-evm
pkgname=python-${_name}
pkgver=0.10.1b2
pkgrel=1
pkgdesc="A Python implementation of the Ethereum Virtual Machine"
arch=(any)
url="https://github.com/ethereum/${_name}"
license=(MIT)
depends=(python python-cached-property python-eth-bloom python-eth-hash python-eth-keys python-eth-typing python-eth-utils python-lru-dict python-py_ecc python-rlp python-trie python-ckzg python-toolz python-pycryptodome)
makedepends=(git python-build python-installer python-setuptools python-wheel)
# hyphen in git tag, hard to automated upgrade
source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz)
sha512sums=('5d4d74c2639c99e915d452535418d13b34b4b3be15a52e2906d2fce653a6d40266f89cad22cf84be3b381ac7a22161e2b0ddcb9ce240f84529841d33a6495d4c')

build() {
cd ${_name//-/_}-$pkgver
python -m build --wheel --no-isolation
}

package() {
cd ${_name//-/_}-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
}
15 changes: 15 additions & 0 deletions archlinuxcn/python-py-evm/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
maintainers:
- github: Xeonacid
email: [email protected]

build_prefix: archlinuxcn-x86_64

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: pypi
pypi: py-evm
use_pre_release: true
- alias: python

0 comments on commit 5fb6911

Please sign in to comment.