diff --git a/srcpkgs/python3-InSpice/template b/srcpkgs/python3-InSpice/template new file mode 100644 index 00000000000000..c2839fcdfb1692 --- /dev/null +++ b/srcpkgs/python3-InSpice/template @@ -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 " +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 diff --git a/srcpkgs/python3-hierplace/template b/srcpkgs/python3-hierplace/template new file mode 100644 index 00000000000000..0c754877def52c --- /dev/null +++ b/srcpkgs/python3-hierplace/template @@ -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 " +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 +} diff --git a/srcpkgs/python3-kinet2pcb/template b/srcpkgs/python3-kinet2pcb/template new file mode 100644 index 00000000000000..f9c94c51999a7b --- /dev/null +++ b/srcpkgs/python3-kinet2pcb/template @@ -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 " +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 +} diff --git a/srcpkgs/python3-simp_sexp/template b/srcpkgs/python3-simp_sexp/template new file mode 100644 index 00000000000000..a298a6ab675c5e --- /dev/null +++ b/srcpkgs/python3-simp_sexp/template @@ -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 " +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 +} diff --git a/srcpkgs/python3-skidl/template b/srcpkgs/python3-skidl/template new file mode 100644 index 00000000000000..c1dca50b258322 --- /dev/null +++ b/srcpkgs/python3-skidl/template @@ -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 " +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 +}