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:
Anna (cybertailor) Vyalkova
2022-12-13 00:19:35 +05:00
parent 292ca6422f
commit 27fff44f77
3 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST notion-client-2.0.0.gh.tar.gz 29990 BLAKE2B e3a5304364e4f96d4bccd38c8579f47263a67f0daed59fabba835a8b7fd178b70f99df71369b67692f3bdbe6d1a7c4a387ba6cb75c9abee4b100e599b1bddaba SHA512 480c6c61fed474505ffa46f363bb3b244d611b9af42f1bb7ed1d66c6aee006aa1c5fa0adc48397f65b71608402d06b71b78c2a32e9dad13d7f36fe6a7223bb16

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>cyber+gentoo@sysrq.in</email>
<name>Anna</name>
</maintainer>
<upstream>
<remote-id type="pypi">notion-client</remote-id>
<remote-id type="github">ramnes/notion-sdk-py</remote-id>
</upstream>
</pkgmetadata>

View 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"
}