python312Packages.b2sdk: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-06 18:10:40 +02:00
parent 2c95edc35b
commit 152d684fbf

View File

@ -1,21 +1,22 @@
{ lib {
, stdenv lib,
, buildPythonPackage stdenv,
, fetchFromGitHub buildPythonPackage,
, glibcLocales fetchFromGitHub,
, importlib-metadata glibcLocales,
, logfury importlib-metadata,
, packaging logfury,
, pdm-backend packaging,
, pyfakefs pdm-backend,
, pytest-lazy-fixture pyfakefs,
, pytest-mock pytest-lazy-fixture,
, pytestCheckHook pytest-mock,
, pythonOlder pytestCheckHook,
, pythonRelaxDepsHook pythonOlder,
, requests pythonRelaxDepsHook,
, tqdm requests,
, typing-extensions tqdm,
typing-extensions,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -32,27 +33,20 @@ buildPythonPackage rec {
hash = "sha256-0/UC4O19oO8SpboiPIhvkWBA8XHpc279fl377MooK54="; hash = "sha256-0/UC4O19oO8SpboiPIhvkWBA8XHpc279fl377MooK54=";
}; };
build-system = [ build-system = [ pdm-backend ];
pdm-backend
];
nativeBuildInputs = [ nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDepsHook
];
pythonRemoveDeps = [ pythonRemoveDeps = [ "setuptools" ];
"setuptools"
];
dependencies = [ dependencies =
packaging [
logfury packaging
requests logfury
] ++ lib.optionals (pythonOlder "3.8") [ requests
importlib-metadata ]
] ++ lib.optionals (pythonOlder "3.12") [ ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]
typing-extensions ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ];
];
nativeCheckInputs = [ nativeCheckInputs = [
pyfakefs pyfakefs
@ -60,9 +54,7 @@ buildPythonPackage rec {
pytest-mock pytest-mock
pytestCheckHook pytestCheckHook
tqdm tqdm
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [ glibcLocales ];
glibcLocales
];
disabledTestPaths = [ disabledTestPaths = [
# requires aws s3 auth # requires aws s3 auth
@ -78,9 +70,7 @@ buildPythonPackage rec {
"test_file_info_b2_attributes" "test_file_info_b2_attributes"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "b2sdk" ];
"b2sdk"
];
meta = with lib; { meta = with lib; {
description = "Client library and utilities for access to B2 Cloud Storage (backblaze)"; description = "Client library and utilities for access to B2 Cloud Storage (backblaze)";