Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 82 lines
Nix
at gcc-offload
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ lib, stdenv, buildPythonPackage, fetchFromGitHub, glibcLocales, importlib-metadata, logfury, annotated-types, packaging, pdm-backend, pyfakefs, pytest-lazy-fixtures, pytest-mock, pytestCheckHook, pythonOlder, requests, tqdm, typing-extensions,}:
buildPythonPackage rec { pname = "b2sdk"; version = "2.6.0"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "Backblaze"; repo = "b2-sdk-python"; rev = "refs/tags/v${version}"; hash = "sha256-nYsbcRRNh6WEelur/GvzE800Yg0h51FDhxJwBryVs4w="; };
build-system = [ pdm-backend ];
dependencies = [ annotated-types packaging logfury requests ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ] ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ];
nativeCheckInputs = [ pytest-lazy-fixtures pytest-mock pytestCheckHook tqdm ] ++ lib.optionals stdenv.hostPlatform.isLinux [ glibcLocales ];
disabledTestPaths = [ # requires aws s3 auth "test/integration/test_download.py" "test/integration/test_upload.py"
# Requires backblaze auth "test/integration/test_bucket.py" ];
disabledTests = [ # Test requires an API key "test_raw_api" "test_files_headers" "test_large_file" "test_file_info_b2_attributes" "test_sync_folder" ];
pythonImportsCheck = [ "b2sdk" ];
meta = with lib; { 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/v${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ pmw ]; };}