1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
nix-update-script,
# build-system
poetry-core,
poetry-dynamic-versioning,
# dependencies
click,
cryptography,
dnspython,
httpx,
libipld,
pydantic,
typing-extensions,
websockets,
# nativeCheckInputs
pytestCheckHook,
pytest-asyncio,
}:
buildPythonPackage rec {
pname = "atproto";
version = "0.0.65";
pyproject = true;
# use GitHub, pypi does not include tests
src = fetchFromGitHub {
owner = "MarshalX";
repo = "atproto";
tag = "v${version}";
hash = "sha256-0NogKxYO+lCtNhK2ZWwRLQTV7rHU5Oz+lnE4awsoPsM=";
};
POETRY_DYNAMIC_VERSIONING_BYPASS = version;
build-system = [
poetry-core
poetry-dynamic-versioning
];
dependencies = [
click
cryptography
dnspython
httpx
libipld
pydantic
typing-extensions
websockets
];
pythonRelaxDeps = [
"cryptography"
"websockets"
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
disabledTestPaths = [
# the required `_PATH_TO_LEXICONS` is outside the package tree
"tests/test_atproto_lexicon/test_lexicon_parser.py"
# touches network
"tests/test_atproto_identity/test_atproto_data.py"
"tests/test_atproto_identity/test_async_atproto_data.py"
"tests/test_atproto_identity/test_did_resolver.py"
"tests/test_atproto_identity/test_async_did_resolver.py"
"tests/test_atproto_identity/test_did_resolver_cache.py"
"tests/test_atproto_identity/test_async_did_resolver_cache.py"
"tests/test_atproto_identity/test_handle_resolver.py"
"tests/test_atproto_identity/test_async_handle_resolver.py"
"tests/test_atproto_server/auth/test_custom_feed_auth.py"
];
pythonImportsCheck = [
"atproto"
"atproto_cli"
"atproto_client"
"atproto_codegen"
"atproto_core"
"atproto_crypto"
"atproto_firehose"
"atproto_identity"
"atproto_lexicon"
"atproto_server"
];
passthru.updateScript = nix-update-script { };
meta = {
description = "AT Protocol (Bluesky) SDK for Python";
homepage = "https://github.com/MarshalX/atproto";
changelog = "https://github.com/MarshalX/atproto/blob/v${version}/CHANGES.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ vji ];
};
}
|