mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 03:23:20 -04:00
dev-python/notion-client: new package, add 2.0.0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
40
dev-python/notion-client/notion-client-2.0.0.ebuild
Normal file
40
dev-python/notion-client/notion-client-2.0.0.ebuild
Normal file
@@ -0,0 +1,40 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="notion-sdk-py"
|
||||
DESCRIPTION="Python client for the official Notion API"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/notion-client/
|
||||
https://github.com/ramnes/notion-sdk-py
|
||||
"
|
||||
SRC_URI="https://github.com/ramnes/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="dev-python/httpx[${PYTHON_USEDEP}]"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-vcr[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
rm setup.cfg || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
epytest -o "asyncio_mode=auto"
|
||||
}
|
||||
Reference in New Issue
Block a user