Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 75 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ lib, buildPythonPackage, fetchFromGitHub, logfury, annotated-types, hatchling, hatch-vcs, pytest-lazy-fixtures, pytest-mock, pytest-timeout, pytestCheckHook, pythonAtLeast, pythonOlder, requests, responses, tenacity, tqdm, typing-extensions,}:
buildPythonPackage rec { pname = "b2sdk"; version = "2.10.4"; pyproject = true;
src = fetchFromGitHub { owner = "Backblaze"; repo = "b2-sdk-python"; tag = "v${version}"; hash = "sha256-hgTQRVOgQmCA5RuwKATAev8y+S5R6xXnpmgprJ+bUYY="; };
build-system = [ hatchling hatch-vcs ];
dependencies = [ annotated-types logfury requests ] ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ];
nativeCheckInputs = [ pytest-lazy-fixtures pytest-mock pytest-timeout pytestCheckHook responses tenacity tqdm ];
enabledTestPaths = [ "test/unit" ];
disabledTests = lib.optionals (pythonAtLeast "3.14") [ # - 'could not be accessed (no permissions to read?)', # + 'could not be accessed (broken symlink?)', "test_dir_without_exec_permission" ];
pythonImportsCheck = [ "b2sdk" ];
meta = { description = "Client library and utilities for access to B2 Cloud Storage (backblaze)"; homepage = "https://github.com/Backblaze/b2-sdk-python"; changelog = "https://github.com/Backblaze/b2-sdk-python/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ pmw ]; };}