python313Packages.notion-client: modernize
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
{
|
||||
lib,
|
||||
anyio,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
anyio,
|
||||
httpx,
|
||||
pytest-asyncio,
|
||||
pytest-cov-stub,
|
||||
pytest-vcr,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -16,8 +16,6 @@ buildPythonPackage rec {
|
||||
version = "2.6.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ramnes";
|
||||
repo = "notion-sdk-py";
|
||||
@@ -25,26 +23,22 @@ buildPythonPackage rec {
|
||||
hash = "sha256-kUeZhnQwZ+To5NCo7jtQsTfX1kQotbAHDcHf2qwGOIs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [ httpx ];
|
||||
|
||||
# disable coverage options as they don't provide us value, and they break the default pytestCheckHook
|
||||
preCheck = ''
|
||||
sed -i '/addopts/d' ./setup.cfg
|
||||
'';
|
||||
dependencies = [ httpx ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
anyio
|
||||
pytest-asyncio
|
||||
pytest-cov-stub
|
||||
pytest-vcr
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "notion_client" ];
|
||||
|
||||
disabledTests = [
|
||||
# requires network access
|
||||
# Test requires network access
|
||||
"test_api_http_response_error"
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user