Scrapy-2.6.1.ebuild

This commit is contained in:
Anton Bolshakov 2022-07-10 10:35:19 +08:00
parent edc05e9ef1
commit ebacd923be
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
8 changed files with 79 additions and 11 deletions

View file

@ -1,2 +1,2 @@
DIST Scrapy-1.8.0.tar.gz 977658 BLAKE2B 32cf81919d0b3598a2fc8b2cf1880afbf3999b8e97b0f71ecbb95e22f0810d78d21798d7b1e40137c06733963f8fee28abeaa8804376f3701b87534a20d9f797 SHA512 fcc988cee171a8134ff8a6cd2655d715942fb9e720a070654bc634863e444f121e990910a0c1377e3b4679d496610267cc43eb907b8cf27d0623053c66ff26b9
DIST Scrapy-2.6.0.tar.gz 1103163 BLAKE2B 651fcea80c7c3fdbf8ceab9a8b384d624d3902f97dbede667724f1649a8becc96d7cf897480c4de160b5f7c0db16def276d102a33b0a919abed5f9278ada309d SHA512 9b062c07367f8811aa57cdc98eacc0a98f42c885fb14cacad06cb8f353be92065d59c4864fb3f1d8597abcbbfeb2c69d8b4b4c870b550ac062c649784b0d8a8b
DIST Scrapy-2.6.1.tar.gz 1103155 BLAKE2B 24cbeb505c898ade8bb6775b2aa865e7d8c16e8f7d57b8bbd8f6fbdc5130239f2de9ad5fd4ebbf5cab73dc1b928931a0cf42d0d4b20a439ae53d68c96d8dd60b SHA512 3ba0ac59fceb3c536be5dbc9f8101751b3dba8bc3e64f11657d6d0d2624ac546866dd87b5e8a73d40d044f4927c98abfba5acd30c866fa0640c31f63c6c6ce11

View file

@ -1,7 +1,7 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
@ -12,15 +12,12 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT=0
#FIXME: missing deps
#KEYWORDS="~amd64 ~x86"
#dev-python/tldextract is not stable on x86
KEYWORDS="amd64 ~arm64 ~x86"
IUSE=""
RESTRICT="test"
# The 'PyDispatcher>=2.0.5' distribution was not found and is required by Scrapy
# https://bugs.gentoo.org/684734
RDEPEND="${PYTHON_DEPS}
>=dev-python/twisted-17.9.0[${PYTHON_USEDEP}]
RDEPEND=">=dev-python/twisted-17.9.0[${PYTHON_USEDEP}]
>=dev-python/cryptography-2.0[${PYTHON_USEDEP}]
>=dev-python/cssselect-0.9.1[${PYTHON_USEDEP}]
>=dev-python/itemloaders-1.0.1[${PYTHON_USEDEP}]
@ -33,5 +30,20 @@ RDEPEND="${PYTHON_DEPS}
>=dev-python/Protego-0.1.15[${PYTHON_USEDEP}]
>=dev-python/itemadapter-0.1.0[${PYTHON_USEDEP}]
dev-python/tldextract[${PYTHON_USEDEP}]
=dev-python/pydispatcher-2.0*[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
#FIXME:
#cpython:
# 'lxml>=3.5.0',
# 'PyDispatcher>=2.0.5',
#PyPy
# 'lxml>=4.0.0',
# 'PyPyDispatcher>=2.1.0',
# Also see:
# https://bugs.gentoo.org/684734

View file

@ -0,0 +1 @@
DIST itemadapter-0.4.0.tar.gz 14682 BLAKE2B ce7c9bcebd1dd75c35e76af2a788e6b3695c4e2fa19cc7dc467dc8dcd58deb71ae2f9272195d5030c0a72b80f56171ed9760eefd6c5c2b2769176ca8b441d6b8 SHA512 c7226c2e0e8c2f1695ec62e67a60b99ed92f4e71c9003a274292df91cef54abc382f614eb08422be6d532c0e91fa0bf962d2b5f6b2220e107b5ba43d921be15d

View file

@ -0,0 +1,27 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="Common interface for scrapy data container classes"
HOMEPAGE="https://scrapy.org/"
SRC_URI="https://github.com/scrapy/itemadapter/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT=0
KEYWORDS="amd64 ~arm64 x86"
RDEPEND="${PYTHON_DEPS}"
DEPEND="${RDEPEND}"
BDEPEND="${DEPEND}
test? (
dev-python/attrs[${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
dev-python/Scrapy[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest

View file

@ -0,0 +1 @@
DIST itemloaders-1.0.4.tar.gz 26673 BLAKE2B a582a80a8a74be05c3e4770dc6fa017e43d20c496da79c5bb7ae9b02bdb282183347849e7a83b6174821fcc46d4021414b354537dc14291b6be82e774ffefd4e SHA512 b3f59c99db8dbf9757a304c55bd6b333347fdddc984edbeacd8314baaf8e319897b33801bc481d192330a573e75a6aa586d3da5bb11318287709723221bcbde6

View file

@ -0,0 +1,26 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="Library to populate items using XPath and CSS with a convenient API"
HOMEPAGE="https://scrapy.org/"
SRC_URI="https://github.com/scrapy/itemloaders/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT=0
KEYWORDS="amd64 ~arm64 x86"
RESTRICT="test"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
dev-python/itemadapter[${PYTHON_USEDEP}]
dev-python/jmespath[${PYTHON_USEDEP}]
dev-python/parsel[${PYTHON_USEDEP}]
dev-python/w3lib[${PYTHON_USEDEP}]
"
#distutils_enable_tests pytest

View file

@ -1,7 +1,7 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~arm64 x86"
RDEPEND=">=dev-python/w3lib-1.19.0[${PYTHON_USEDEP}]
>=dev-python/lxml-2.3[${PYTHON_USEDEP}]

View file

@ -65,6 +65,7 @@ def portage_mapping(search):
"dev-python/flask_caching": "dev-python/flask-caching",
"dev-python/zope.interface": "dev-python/zope-interface",
"dev-python/pjsip": "net-libs/pjproject",
"dev-python/protego": "dev-python/Protego",
"dev-python/pyVNC": "dev-python/pyvnc"
}