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 = "2022.10.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "fsspec";
22 repo = pname;
23 rev = version;
24 hash = "sha256-h/xcqb7G4uj4WNVE8is/s2LQ2NfzP1negh15G8B9YCs=";
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 license = licenses.bsd3;
47 maintainers = with maintainers; [ fab ];
48 };
49}