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