2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
azure-core,
|
|
|
|
azure-datalake-store,
|
|
|
|
azure-identity,
|
|
|
|
azure-storage-blob,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fsspec,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "adlfs";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2024.4.1";
|
|
|
|
pyproject = true;
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fsspec";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "adlfs";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-u7iQCAfJDnN8MgFZDf/rPUM94HXAr+yzsajuKtmdX4s=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2022-08-21 13:32:41 +00:00
|
|
|
aiohttp
|
|
|
|
azure-core
|
|
|
|
azure-datalake-store
|
|
|
|
azure-identity
|
|
|
|
azure-storage-blob
|
|
|
|
fsspec
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require a running Docker instance
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "adlfs" ];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Filesystem interface to Azure-Datalake Gen1 and Gen2 Storage";
|
|
|
|
homepage = "https://github.com/fsspec/adlfs";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/fsspec/adlfs/blob/${version}/CHANGELOG.md";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|