nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 flit-core,
7 pytestCheckHook,
8 pytest-asyncio,
9 pytest-vcr,
10 vcrpy,
11 yarl,
12}:
13
14buildPythonPackage rec {
15 pname = "asyncprawcore";
16 version = "3.0.2";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "praw-dev";
21 repo = "asyncprawcore";
22 tag = "v${version}";
23 hash = "sha256-0FOMY/0LXGcHwDe4t+NMAovMhX83/mMv8sWvIf5gxok=";
24 };
25
26 build-system = [ flit-core ];
27
28 dependencies = [
29 aiohttp
30 yarl
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 pytest-asyncio
36 pytest-vcr
37 vcrpy
38 ];
39
40 disabledTestPaths = [
41 # Ignored due to error with request cannot pickle 'BufferedReader' instances
42 # Upstream issue: https://github.com/kevin1024/vcrpy/issues/737
43 "tests/integration/test_sessions.py"
44 ];
45
46 disabledTests = [
47 # Test requires network access
48 "test_initialize"
49 ];
50
51 pythonImportsCheck = [ "asyncprawcore" ];
52
53 meta = {
54 description = "Low-level asynchronous communication layer for Async PRAW";
55 homepage = "https://asyncpraw.readthedocs.io/";
56 changelog = "https://github.com/praw-dev/asyncprawcore/blob/v${version}/CHANGES.rst";
57 license = lib.licenses.bsd2;
58 maintainers = [ lib.maintainers.amadejkastelic ];
59 };
60}