22 buildPythonPackage rec {
27 disabled = pythonOlder "3.7";
29 src = fetchFromGitHub {
31 repo = "b2-sdk-python";
32 rev = "refs/tags/v${version}";
33 hash = "sha256-0/UC4O19oO8SpboiPIhvkWBA8XHpc279fl377MooK54=";
36 build-system = [ pdm-backend ];
38 nativeBuildInputs = [ pythonRelaxDepsHook ];
40 pythonRemoveDeps = [ "setuptools" ];
48 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]
49 ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ];
57 ] ++ lib.optionals stdenv.isLinux [ glibcLocales ];
60 # requires aws s3 auth
61 "test/integration/test_download.py"
62 "test/integration/test_upload.py"
66 # Test requires an API key
70 "test_file_info_b2_attributes"
73 pythonImportsCheck = [ "b2sdk" ];
76 description = "Client library and utilities for access to B2 Cloud Storage (backblaze)";
77 homepage = "https://github.com/Backblaze/b2-sdk-python";
78 changelog = "https://github.com/Backblaze/b2-sdk-python/blob/v${version}/CHANGELOG.md";
79 license = licenses.mit;
80 maintainers = with maintainers; [ ];