Files
nixpkgs/pkgs/development/python-modules/asyncprawcore/default.nix
2026-06-14 12:53:24 +02:00

61 lines
1.3 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
pytest-asyncio,
pytest-vcr,
vcrpy,
yarl,
}:
buildPythonPackage (finalAttrs: {
pname = "asyncprawcore";
version = "4.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "praw-dev";
repo = "asyncprawcore";
tag = "v${finalAttrs.version}";
hash = "sha256-kpqd6H8uiqp4rM+8B+qJxfslrY5uvRTEARwh/0runIg=";
};
build-system = [ hatchling ];
dependencies = [
aiohttp
yarl
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
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"
];
disabledTests = [
# Test requires network access
"test_initialize"
];
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${finalAttrs.version}/CHANGES.rst";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.amadejkastelic ];
};
})