python312Packages.b2sdk: refactor

This commit is contained in:
Fabian Affolter 2024-04-06 18:10:03 +02:00
parent 52a69d191f
commit 2c95edc35b

View File

@ -4,15 +4,15 @@
, fetchFromGitHub , fetchFromGitHub
, glibcLocales , glibcLocales
, importlib-metadata , importlib-metadata
, packaging
, logfury , logfury
, packaging
, pdm-backend
, pyfakefs , pyfakefs
, pytestCheckHook
, pytest-lazy-fixture , pytest-lazy-fixture
, pytest-mock , pytest-mock
, pytestCheckHook
, pythonOlder , pythonOlder
, pythonRelaxDepsHook , pythonRelaxDepsHook
, pdm-backend
, requests , requests
, tqdm , tqdm
, typing-extensions , typing-extensions
@ -32,8 +32,11 @@ buildPythonPackage rec {
hash = "sha256-0/UC4O19oO8SpboiPIhvkWBA8XHpc279fl377MooK54="; hash = "sha256-0/UC4O19oO8SpboiPIhvkWBA8XHpc279fl377MooK54=";
}; };
nativeBuildInputs = [ build-system = [
pdm-backend pdm-backend
];
nativeBuildInputs = [
pythonRelaxDepsHook pythonRelaxDepsHook
]; ];
@ -41,11 +44,10 @@ buildPythonPackage rec {
"setuptools" "setuptools"
]; ];
propagatedBuildInputs = [ dependencies = [
packaging packaging
logfury logfury
requests requests
tqdm
] ++ lib.optionals (pythonOlder "3.8") [ ] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata importlib-metadata
] ++ lib.optionals (pythonOlder "3.12") [ ] ++ lib.optionals (pythonOlder "3.12") [
@ -53,10 +55,11 @@ buildPythonPackage rec {
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pyfakefs
pytest-lazy-fixture pytest-lazy-fixture
pytest-mock pytest-mock
pyfakefs pytestCheckHook
tqdm
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
glibcLocales glibcLocales
]; ];