diff --git a/pkgs/development/python-modules/asyncprawcore/default.nix b/pkgs/development/python-modules/asyncprawcore/default.nix index bc8c34f86a01..b6a34a6a2b9a 100644 --- a/pkgs/development/python-modules/asyncprawcore/default.nix +++ b/pkgs/development/python-modules/asyncprawcore/default.nix @@ -4,43 +4,35 @@ buildPythonPackage, fetchFromGitHub, flit-core, - mock, pytestCheckHook, - pytest-asyncio_0, + pytest-asyncio, pytest-vcr, - requests, - requests-toolbelt, - testfixtures, vcrpy, yarl, }: buildPythonPackage rec { pname = "asyncprawcore"; - version = "2.4.0"; + version = "3.0.2"; pyproject = true; src = fetchFromGitHub { owner = "praw-dev"; repo = "asyncprawcore"; tag = "v${version}"; - hash = "sha256-FDQdtnNjsbiEp9BUYdQFMC/hkyJDhCh2WHhQWSQwrFY="; + hash = "sha256-0FOMY/0LXGcHwDe4t+NMAovMhX83/mMv8sWvIf5gxok="; }; build-system = [ flit-core ]; dependencies = [ - requests aiohttp yarl ]; nativeCheckInputs = [ - testfixtures - mock - requests-toolbelt pytestCheckHook - pytest-asyncio_0 + pytest-asyncio pytest-vcr vcrpy ]; @@ -51,6 +43,11 @@ buildPythonPackage rec { "tests/integration/test_sessions.py" ]; + disabledTests = [ + # Test requires network access + "test_initialize" + ]; + pythonImportsCheck = [ "asyncprawcore" ]; meta = {