push sheeet
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

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,107 @@
{
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,
coverage,
}:
buildPythonPackage rec {
pname = "atproto";
version = "0.0.62";
format = "pyproject";
disabled = pythonOlder "3.8";
# use GitHub, pypi does not include tests
src = fetchFromGitHub {
owner = "MarshalX";
repo = "atproto";
tag = "v${version}";
hash = "sha256-T1Jdg62fSV+5qC486Agsuk6qrDhGSNHq75uvOyvOwpA=";
};
POETRY_DYNAMIC_VERSIONING_BYPASS = version;
build-system = [
poetry-core
poetry-dynamic-versioning
];
dependencies = [
click
cryptography
dnspython
httpx
libipld
pydantic
typing-extensions
websockets
];
pythonRelaxDeps = [
"websockets"
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
coverage
];
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 ];
};
}