nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 72 lines 1.6 kB view raw
1{ 2 lib, 3 aiofiles, 4 aiohttp, 5 asyncprawcore, 6 buildPythonPackage, 7 coverage, 8 defusedxml, 9 fetchFromGitHub, 10 hatchling, 11 pytestCheckHook, 12 pytest-asyncio, 13 pytest-vcr, 14 update-checker, 15 vcrpy, 16}: 17 18buildPythonPackage rec { 19 pname = "asyncpraw"; 20 version = "7.8.1-unstable-2025-10-08"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "praw-dev"; 25 repo = "asyncpraw"; 26 rev = "9221cbef5d94fce9ecc92376cbab084f0082502d"; 27 hash = "sha256-/7x7XYw1JDVaoc2+wKWW3iUkyfI6MVtBNP9G1AEUp4Y="; 28 }; 29 30 pythonRelaxDeps = [ 31 "coverage" 32 "defusedxml" 33 ]; 34 35 build-system = [ hatchling ]; 36 37 dependencies = [ 38 aiofiles 39 aiohttp 40 asyncprawcore 41 coverage 42 defusedxml 43 update-checker 44 ]; 45 46 nativeCheckInputs = [ 47 pytestCheckHook 48 pytest-asyncio 49 pytest-vcr 50 vcrpy 51 ]; 52 53 disabledTestPaths = [ 54 # Ignored due to error with request cannot pickle 'BufferedReader' instances 55 # Upstream issue: https://github.com/kevin1024/vcrpy/issues/737 56 "tests/integration/models/reddit/test_emoji.py" 57 "tests/integration/models/reddit/test_submission.py" 58 "tests/integration/models/reddit/test_subreddit.py" 59 "tests/integration/models/reddit/test_widgets.py" 60 "tests/integration/models/reddit/test_wikipage.py" 61 ]; 62 63 pythonImportsCheck = [ "asyncpraw" ]; 64 65 meta = { 66 description = "Asynchronous Python Reddit API Wrapper"; 67 homepage = "https://asyncpraw.readthedocs.io/"; 68 changelog = "https://github.com/praw-dev/asyncpraw/blob/${src.rev}/CHANGES.rst"; 69 license = lib.licenses.bsd2; 70 maintainers = [ lib.maintainers.amadejkastelic ]; 71 }; 72}