python312Packages.b2sdk: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-06 18:10:40 +02:00
parent 2c95edc35b
commit 152d684fbf
1 changed files with 32 additions and 42 deletions

View File

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