Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.4 kB · 107 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108{ 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.61"; format = "pyproject"; disabled = pythonOlder "3.8";
# use GitHub, pypi does not include tests src = fetchFromGitHub { owner = "MarshalX"; repo = "atproto"; tag = "v${version}"; hash = "sha256-90u/ew5j6kRU8Mow/dXTUXpv2FbEFpKRPGoaWQ7gvSA="; };
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 ]; };}