1{
2 lib,
3 aiohttp,
4 azure-core,
5 azure-datalake-store,
6 azure-identity,
7 azure-storage-blob,
8 buildPythonPackage,
9 fetchFromGitHub,
10 fsspec,
11 pythonOlder,
12 setuptools,
13 setuptools-scm,
14}:
15
16buildPythonPackage rec {
17 pname = "adlfs";
18 version = "2024.12.0";
19 pyproject = true;
20
21 disabled = pythonOlder "3.8";
22
23 src = fetchFromGitHub {
24 owner = "fsspec";
25 repo = "adlfs";
26 tag = version;
27 hash = "sha256-s3nMvaH3YecABnFS7E4XPRWk8GwPVyqb9Qe2ejeXsZI=";
28 };
29
30 build-system = [
31 setuptools
32 setuptools-scm
33 ];
34
35 dependencies = [
36 aiohttp
37 azure-core
38 azure-datalake-store
39 azure-identity
40 azure-storage-blob
41 fsspec
42 ];
43
44 # Tests require a running Docker instance
45 doCheck = false;
46
47 pythonImportsCheck = [ "adlfs" ];
48
49 meta = with lib; {
50 description = "Filesystem interface to Azure-Datalake Gen1 and Gen2 Storage";
51 homepage = "https://github.com/fsspec/adlfs";
52 changelog = "https://github.com/fsspec/adlfs/blob/${version}/CHANGELOG.md";
53 license = licenses.bsd3;
54 maintainers = with maintainers; [ fab ];
55 };
56}