Unverified Commit 178df79c authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python3Packages.asyncprawcore: 2.4.0 -> 3.0.2, python3Packages.asyncpraw:...

python3Packages.asyncprawcore: 2.4.0 -> 3.0.2, python3Packages.asyncpraw: 7.8.1 -> 7.8.1-unstable-2025-10-08 (#453140)
parents 598459a3 99b55254
Loading
Loading
Loading
Loading
+16 −21
Original line number Diff line number Diff line
@@ -2,57 +2,52 @@
  lib,
  aiofiles,
  aiohttp,
  aiosqlite,
  asyncprawcore,
  buildPythonPackage,
  coverage,
  defusedxml,
  fetchFromGitHub,
  flit-core,
  mock,
  hatchling,
  pytestCheckHook,
  pytest-asyncio_0,
  pytest-asyncio,
  pytest-vcr,
  pythonOlder,
  requests-toolbelt,
  update-checker,
  vcrpy,
}:

buildPythonPackage rec {
  pname = "asyncpraw";
  version = "7.8.1";
  version = "7.8.1-unstable-2025-10-08";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "praw-dev";
    repo = "asyncpraw";
    tag = "v${version}";
    hash = "sha256-glWAQoUjMFbjU3C4+MGuRGSGJS9mun15+6udMPCf9nU=";
    rev = "9221cbef5d94fce9ecc92376cbab084f0082502d";
    hash = "sha256-/7x7XYw1JDVaoc2+wKWW3iUkyfI6MVtBNP9G1AEUp4Y=";
  };

  pythonRelaxDeps = [ "aiosqlite" ];

  # 'aiosqlite' is also checked when building the wheel
  pypaBuildFlags = [ "--skip-dependency-check" ];
  pythonRelaxDeps = [
    "coverage"
    "defusedxml"
  ];

  build-system = [ flit-core ];
  build-system = [ hatchling ];

  dependencies = [
    aiofiles
    aiohttp
    aiosqlite
    asyncprawcore
    mock
    coverage
    defusedxml
    update-checker
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio_0
    pytest-asyncio
    pytest-vcr
    vcrpy
    requests-toolbelt
  ];

  disabledTestPaths = [
@@ -70,7 +65,7 @@ buildPythonPackage rec {
  meta = {
    description = "Asynchronous Python Reddit API Wrapper";
    homepage = "https://asyncpraw.readthedocs.io/";
    changelog = "https://github.com/praw-dev/asyncpraw/blob/v${version}/CHANGES.rst";
    changelog = "https://github.com/praw-dev/asyncpraw/blob/${src.rev}/CHANGES.rst";
    license = lib.licenses.bsd2;
    maintainers = [ lib.maintainers.amadejkastelic ];
  };
+9 −12
Original line number Diff line number Diff line
@@ -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 = {