summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@protonmail.com>2021-02-23 17:20:38 +0100
committerJoonas Niilola <juippis@gentoo.org>2021-02-24 10:30:54 +0200
commitc1b01d1498fb93cea535a00b1acb5631605577db (patch)
tree4e209c3120931724864d3311cf0a6caae74826ee /dev-python
parentdev-python/js2py: new package; add version 0.70_p20210218 (diff)
downloadgentoo-c1b01d1498fb93cea535a00b1acb5631605577db.tar.gz
gentoo-c1b01d1498fb93cea535a00b1acb5631605577db.tar.bz2
gentoo-c1b01d1498fb93cea535a00b1acb5631605577db.zip
dev-python/pyjsparser: new package; add 2.7.1_p20190421
Fast javascript parser based on esprima.js Signed-off-by: Maciej Barć <xgqt@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/19498 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pyjsparser/Manifest1
-rw-r--r--dev-python/pyjsparser/metadata.xml16
-rw-r--r--dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild36
3 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/pyjsparser/Manifest b/dev-python/pyjsparser/Manifest
new file mode 100644
index 000000000000..7ad8aba46e11
--- /dev/null
+++ b/dev-python/pyjsparser/Manifest
@@ -0,0 +1 @@
+DIST pyjsparser-2.7.1_p20190421.tar.gz 210147 BLAKE2B 1286167a8ff9a0ee08019af2c1ba36a0dd1c22004a4e1ea3764f0a2a06e87b649435f332b9a9dea461ceade32340f7388489c972dafc9e558f973d7bbea4ac42 SHA512 2e4b3ee1cd863099da262eaf4df5ec4f364ce54e7c7535558f36d3449e21c9f851460078e1a7057ef8c82e2ed9c82f54944cd92782fe3f8cd05411edca191a40
diff --git a/dev-python/pyjsparser/metadata.xml b/dev-python/pyjsparser/metadata.xml
new file mode 100644
index 000000000000..5ce6ed5ca087
--- /dev/null
+++ b/dev-python/pyjsparser/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xgqt@protonmail.com</email>
+ <name>Maciej Barć</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">PiotrDabkowski/pyjsparser</remote-id>
+ <remote-id type="pypi">pyjsparser</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild b/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild
new file mode 100644
index 000000000000..9bbe9397f638
--- /dev/null
+++ b/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_COMMIT="5465d037b30e334cb0997f2315ec1e451b8ad4c1"
+
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Fast javascript parser based on esprima.js"
+HOMEPAGE="
+ https://github.com/PiotrDabkowski/pyjsparser/
+ https://pypi.org/project/pyjsparser/
+"
+SRC_URI="https://github.com/PiotrDabkowski/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+RESTRICT="!test? ( test )"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+DEPEND="
+ test? (
+ dev-python/js2py
+ dev-python/pytest
+ )
+"
+
+S="${WORKDIR}/${PN}-${MY_COMMIT}"
+
+python_test() {
+ "${EPYTHON}" ./test_runner.py || die "tests failed with ${EPYTHON}"
+}