diff --git a/dev-python/notion-client/Manifest b/dev-python/notion-client/Manifest new file mode 100644 index 0000000000..b9c37157cf --- /dev/null +++ b/dev-python/notion-client/Manifest @@ -0,0 +1 @@ +DIST notion-client-2.0.0.gh.tar.gz 29990 BLAKE2B e3a5304364e4f96d4bccd38c8579f47263a67f0daed59fabba835a8b7fd178b70f99df71369b67692f3bdbe6d1a7c4a387ba6cb75c9abee4b100e599b1bddaba SHA512 480c6c61fed474505ffa46f363bb3b244d611b9af42f1bb7ed1d66c6aee006aa1c5fa0adc48397f65b71608402d06b71b78c2a32e9dad13d7f36fe6a7223bb16 diff --git a/dev-python/notion-client/metadata.xml b/dev-python/notion-client/metadata.xml new file mode 100644 index 0000000000..4ab426889a --- /dev/null +++ b/dev-python/notion-client/metadata.xml @@ -0,0 +1,12 @@ + + + + + cyber+gentoo@sysrq.in + Anna + + + notion-client + ramnes/notion-sdk-py + + diff --git a/dev-python/notion-client/notion-client-2.0.0.ebuild b/dev-python/notion-client/notion-client-2.0.0.ebuild new file mode 100644 index 0000000000..706bfb5be9 --- /dev/null +++ b/dev-python/notion-client/notion-client-2.0.0.ebuild @@ -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" +}