diff options
Diffstat (limited to 'dev-python/pslab-python')
5 files changed, 76 insertions, 0 deletions
diff --git a/dev-python/pslab-python/Manifest b/dev-python/pslab-python/Manifest new file mode 100644 index 000000000000..a76688e1bb37 --- /dev/null +++ b/dev-python/pslab-python/Manifest @@ -0,0 +1,5 @@ +AUX pslab-python-1.0.1-no_install_udev_rules.patch 313 BLAKE2B ec6b728082006c23c500959e639cd2c80c432922e4a6277826ffc3ac6236fde35983b00391475b2d3f0563f2143360e6e83eb3d587cbffb7d4a6e0a8a227255d SHA512 7af64c38503a9857e724a0d5744b82f569d39effdf2218628ba72ea29008b666384c0666c6b26ed8a84bcaa9caecf45885c5ec965757791c77047256d7764051 +AUX pslab-python-1.0.1-sys_version.patch 296 BLAKE2B 317af730f51ec96b73e31f5d1da981b71ed39bc48fda426aec177998971ae69db457a4eda6193cdc1a85f0215196c6da17437c5de5f70d50bb97effb3d5ca1fd SHA512 36b6f18af550a8bf72e79fcc99e53e356b359e5de62043829c7e52d51753e17078a170b6bfee68ab5225cf4282c5ebc50a8913bf050b7a9258d9be52382f324f +DIST pslab-python-1.0.1.tar.gz 15460183 BLAKE2B 6837c40352eecdf563fa700617ee1712997fc0532483357d889d0fb03645732e0febf5ac83cdc8c766b7ec6d9ac9a436a313d0f44221c2ea69044be6f4c11fa6 SHA512 939f3649a0060a59a39ee97b57134075f8602b966fb3d14250c8ae96c340a4ab33e9fa8d7c5d8cf09ae9297b762c203e4a256bc29b9ff6006ce6ff254c468ad2 +EBUILD pslab-python-1.0.1.ebuild 875 BLAKE2B 4cdf1f82db20b8bf1c01e607366032a743e34f0548599b31072518b102c187f688e32388fd23630a2194567f1cc4cec3ff410e5b9c91c36100fb099adb51628d SHA512 2d3bbc5586b2aee1e5413b4a716f07607601c03aec4f79995e0b0bbed5dde70383dad50658753691ebd212e64b1746c327045cda2ea04704ed0d267abca79bfe +MISC metadata.xml 331 BLAKE2B ec438234de81318bd3e0d6e070fffa79cfa7ce6bbf7ce2ae8ac3c02d3cb797048d0606d403f9c7f439d5b8772248ea72bd2d034364678ce5208dab8df37e9884 SHA512 811ed0f495c2ffaed32234a72c022e1b4c23f5b33d991b943c33790176f7cb5eb2365c8801997a1a1d50a80133c0b40d1a94167b4c3aa47572461dd4ffa16422 diff --git a/dev-python/pslab-python/files/pslab-python-1.0.1-no_install_udev_rules.patch b/dev-python/pslab-python/files/pslab-python-1.0.1-no_install_udev_rules.patch new file mode 100644 index 000000000000..b721e8a8ab03 --- /dev/null +++ b/dev-python/pslab-python/files/pslab-python-1.0.1-no_install_udev_rules.patch @@ -0,0 +1,9 @@ +--- a/setup.py ++++ b/setup.py +@@ -50,6 +50,5 @@ + packages=find_packages(), + #scripts=["PSL/bin/"+a for a in os.listdir("PSL/bin/")], + package_data={'': ['*.css','*.png','*.gif','*.html','*.css','*.js','*.png','*.jpg','*.jpeg','*.htm','99-pslab.rules']}, +- cmdclass={'install': CustomInstall}, + ) + diff --git a/dev-python/pslab-python/files/pslab-python-1.0.1-sys_version.patch b/dev-python/pslab-python/files/pslab-python-1.0.1-sys_version.patch new file mode 100644 index 000000000000..474850a34b08 --- /dev/null +++ b/dev-python/pslab-python/files/pslab-python-1.0.1-sys_version.patch @@ -0,0 +1,11 @@ +--- a/PSL/SENSORS/AD9833.py ++++ b/PSL/SENSORS/AD9833.py +@@ -3,7 +3,7 @@ + + + class AD9833: +- if sys.version.major == 3: ++ if sys.version_info.major == 3: + DDS_MAX_FREQ = 0xFFFFFFF - 1 # 24 bit resolution + else: + DDS_MAX_FREQ = eval("0xFFFFFFFL-1") # 24 bit resolution diff --git a/dev-python/pslab-python/metadata.xml b/dev-python/pslab-python/metadata.xml new file mode 100644 index 000000000000..d93b6e0e2749 --- /dev/null +++ b/dev-python/pslab-python/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>marecki@gentoo.org</email> + <name>Marek Szuba</name> + </maintainer> + <upstream> + <remote-id type="github">fossasia/pslab-python</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pslab-python/pslab-python-1.0.1.ebuild b/dev-python/pslab-python/pslab-python-1.0.1.ebuild new file mode 100644 index 000000000000..b3feed3e6281 --- /dev/null +++ b/dev-python/pslab-python/pslab-python-1.0.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6} ) + +inherit distutils-r1 + +DESCRIPTION="Python library for communicating with Pocket Science Lab" +HOMEPAGE="https://pslab.io" +SRC_URI="https://github.com/fossasia/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc" + +RDEPEND="${PYTHON_DEPS} + dev-python/numpy + dev-python/pyqtgraph + dev-python/pyserial + sci-libs/scipy" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx )" +BDEPEND="dev-python/setuptools" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0.1-sys_version.patch + "${FILESDIR}"/${PN}-1.0.1-no_install_udev_rules.patch +) + +python_compile_all() { + use doc && esetup.py build_sphinx +} + +python_install_all() { + use doc && HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) + distutils-r1_python_install_all +} |