2023-10-24 10:12:49 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flit-core
|
|
|
|
, importlib-metadata
|
|
|
|
, typing-extensions
|
|
|
|
, cloudpathlib
|
|
|
|
, azure-storage-blob
|
|
|
|
, google-cloud-storage
|
|
|
|
, boto3
|
|
|
|
, psutil
|
|
|
|
, pydantic
|
2024-03-24 20:53:29 +01:00
|
|
|
, pytest7CheckHook
|
2023-10-24 10:12:49 +02:00
|
|
|
, pytest-cases
|
|
|
|
, pytest-cov
|
|
|
|
, pytest-xdist
|
|
|
|
, python-dotenv
|
|
|
|
, shortuuid
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cloudpathlib";
|
2024-02-29 08:05:30 +01:00
|
|
|
version = "0.18.1";
|
2023-10-24 10:12:49 +02:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "drivendataorg";
|
|
|
|
repo = "cloudpathlib";
|
2023-12-27 19:01:24 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 08:05:30 +01:00
|
|
|
hash = "sha256-RrdRUqQ3QyMUpTi1FEsSXK6WS37r77SdPBH1oVVvSw0=";
|
2023-10-24 10:12:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
importlib-metadata
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
all = [
|
|
|
|
cloudpathlib
|
|
|
|
];
|
|
|
|
azure = [
|
|
|
|
azure-storage-blob
|
|
|
|
];
|
|
|
|
gs = [
|
|
|
|
google-cloud-storage
|
|
|
|
];
|
|
|
|
s3 = [
|
|
|
|
boto3
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cloudpathlib" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
azure-storage-blob
|
|
|
|
boto3
|
|
|
|
google-cloud-storage
|
|
|
|
psutil
|
|
|
|
pydantic
|
2024-03-24 20:53:29 +01:00
|
|
|
pytest7CheckHook
|
2023-10-24 10:12:49 +02:00
|
|
|
pytest-cases
|
|
|
|
pytest-cov
|
|
|
|
pytest-xdist
|
|
|
|
python-dotenv
|
|
|
|
shortuuid
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python pathlib-style classes for cloud storage services such as Amazon S3, Azure Blob Storage, and Google Cloud Storage";
|
|
|
|
homepage = "https://github.com/drivendataorg/cloudpathlib";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
|
|
};
|
|
|
|
}
|