Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions srcpkgs/python3-InSpice/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Template file for 'python3-InSpice'
pkgname=python3-InSpice
version=1.7.0.6
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel"
depends="python3-numpy python3-matplotlib python3-yaml python3-cffi python3-diskcache
python3-h5py python3-ply ngspice"
checkdepends="${depends} python3-pytest python3-scipy"
short_desc="Python interface to the Ngspice and Xyce circuit simulators"
maintainer="Benjamin Calderon <benj.calderon@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/Innovoltive/InSpice"
distfiles="https://github.com/Innovoltive/InSpice/archive/refs/tags/v${version}.tar.gz"
checksum=8eb1c16d70c3d5bf26fd004d0d2cd27dcd1c1773d55b6b8801e717cd4f136899
19 changes: 19 additions & 0 deletions srcpkgs/python3-hierplace/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Template file for 'python3-hierplace'
pkgname=python3-hierplace
version=1.1.0
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-wheel"
depends="python3"
short_desc="Groups and arranges KiCad PCBNEW board parts to reflect design hierarchy"
maintainer="Benjamin Calderon <benj.calderon@gmail.com>"
license="MIT"
homepage="https://github.com/devbisme/HierPlace"
changelog="https://raw.githubusercontent.com/devbisme/HierPlace/master/HISTORY.rst"
distfiles="https://github.com/devbisme/HierPlace/archive/c70315f08257e73115e67cae650e38c940c8c7f8.tar.gz"
checksum=a597568881ae9f0bcea2f08a9a36e2eabb7c5fb5d8e3e67d1cc78dc694f1d29a
make_check=no # tests require pcbnew from kicad

post_install() {
vlicense LICENSE
}
30 changes: 30 additions & 0 deletions srcpkgs/python3-kinet2pcb/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Template file for 'python3-kinet2pcb'
pkgname=python3-kinet2pcb
version=1.1.4
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-wheel"
depends="python3-simp_sexp python3-hierplace"
checkdepends="${depends} kicad"
short_desc="Convert KiCad netlists into PCBNEW .kicad_pcb files"
maintainer="Benjamin Calderon <benj.calderon@gmail.com>"
license="MIT"
homepage="https://github.com/devbisme/kinet2pcb"
changelog="https://raw.githubusercontent.com/devbisme/kinet2pcb/master/HISTORY.rst"
distfiles="https://github.com/devbisme/kinet2pcb/archive/refs/tags/${version}.tar.gz"
checksum=60f7f3ddba5032a0bb17a7fb13220932456f5ebb035bcfa39b237a25dfc0450b

post_patch() {
# setuptools tries to fetch pytest-runner (setup_requires) via pip,
# which is unavailable in the build chroot
vsed -e '/^setup_requirements = \[/,/^\]/d' -e '/setup_requires=setup_requirements,/d' -i setup.py
}

do_check() {
cd tests
PYTHONPATH="$(cd ../build/lib* && pwd)" python3 -m pytest
}

post_install() {
vlicense LICENSE
}
19 changes: 19 additions & 0 deletions srcpkgs/python3-simp_sexp/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Template file for 'python3-simp_sexp'
pkgname=python3-simp_sexp
version=0.3.1
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel"
depends="python3"
checkdepends="python3-pytest"
short_desc="Simple S-expression parser for Python"
maintainer="Benjamin Calderon <benj.calderon@gmail.com>"
license="MIT"
homepage="https://github.com/devbisme/simp_sexp"
changelog="https://raw.githubusercontent.com/devbisme/simp_sexp/master/HISTORY.md"
distfiles="https://github.com/devbisme/simp_sexp/archive/refs/tags/v${version}.tar.gz"
checksum=1b2db34745b4211e1b4a24e37137e4776c9cb0dce2f9f12c0acac6754421e372

post_install() {
vlicense LICENSE
}
25 changes: 25 additions & 0 deletions srcpkgs/python3-skidl/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Template file for 'python3-skidl'
pkgname=python3-skidl
version=2.3.0
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-wheel"
depends="python3-kinet2pcb python3-simp_sexp python3-InSpice python3-ply python3-rich
python3-graphviz python3-deprecation"
checkdepends="${depends} python3-pytest"
short_desc="Python package for textually describing electronic circuit schematics"
maintainer="Benjamin Calderon <benj.calderon@gmail.com>"
license="MIT"
homepage="https://github.com/devbisme/skidl"
changelog="https://raw.githubusercontent.com/devbisme/skidl/master/HISTORY.md"
distfiles="https://github.com/devbisme/skidl/archive/refs/tags/${version}.tar.gz"
checksum=9b4a4f08c9b0e5c8c1026f045797fa17bc6455e10e663d86fb4494d87ded5ac4

do_check() {
cd tests
PYTHONPATH="$(cd ../build/lib* && pwd)" python3 -m pytest unit_tests
}

post_install() {
vlicense LICENSE
}
Loading