2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, setuptools_scm, isPy27, pytestCheckHook
|
2020-08-17 20:56:07 +01:00
|
|
|
, requests, arrow, logfury, tqdm }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "b2sdk";
|
2020-11-10 14:10:55 +00:00
|
|
|
version = "1.2.0";
|
2020-08-17 20:56:07 +01:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-10 14:10:55 +00:00
|
|
|
sha256 = "8e46ff9d47a9b90d8b9beab1969fcf4920300b02e20e6bf0745be04e09e8a6ff";
|
2020-08-17 20:56:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "b2sdk" ];
|
|
|
|
|
|
|
|
nativebuildInputs = [ setuptools_scm ];
|
|
|
|
propagatedBuildInputs = [ requests arrow logfury tqdm ];
|
|
|
|
|
|
|
|
# requires unpackaged dependencies like liccheck
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-17 20:56:07 +01:00
|
|
|
description = "Client library and utilities for access to B2 Cloud Storage (backblaze).";
|
|
|
|
homepage = "https://github.com/Backblaze/b2-sdk-python";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|