Files
nixpkgs/pkgs/development/python-modules/asyncprawcore/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.3 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
flit-core,
mock,
pytestCheckHook,
pytest-asyncio_0,
pytest-vcr,
requests,
requests-toolbelt,
testfixtures,
vcrpy,
yarl,
}:
buildPythonPackage rec {
pname = "asyncprawcore";
version = "2.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "praw-dev";
repo = "asyncprawcore";
tag = "v${version}";
hash = "sha256-FDQdtnNjsbiEp9BUYdQFMC/hkyJDhCh2WHhQWSQwrFY=";
};
build-system = [ flit-core ];
dependencies = [
requests
aiohttp
yarl
];
nativeCheckInputs = [
testfixtures
mock
requests-toolbelt
pytestCheckHook
pytest-asyncio_0
pytest-vcr
vcrpy
];
disabledTestPaths = [
# Ignored due to error with request cannot pickle 'BufferedReader' instances
# Upstream issue: https://github.com/kevin1024/vcrpy/issues/737
"tests/integration/test_sessions.py"
];
pythonImportsCheck = [ "asyncprawcore" ];
meta = {
description = "Low-level asynchronous communication layer for Async PRAW";
homepage = "https://asyncpraw.readthedocs.io/";
changelog = "https://github.com/praw-dev/asyncprawcore/blob/v${version}/CHANGES.rst";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.amadejkastelic ];
};
}