forked from mirrors/nixpkgs
50 lines
921 B
Nix
50 lines
921 B
Nix
{ lib
|
|
, aiohttp
|
|
, azure-core
|
|
, azure-datalake-store
|
|
, azure-identity
|
|
, azure-storage-blob
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, fsspec
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adlfs";
|
|
version = "2022.10.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fsspec";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-h/xcqb7G4uj4WNVE8is/s2LQ2NfzP1negh15G8B9YCs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
azure-core
|
|
azure-datalake-store
|
|
azure-identity
|
|
azure-storage-blob
|
|
fsspec
|
|
];
|
|
|
|
# Tests require a running Docker instance
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"adlfs"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Filesystem interface to Azure-Datalake Gen1 and Gen2 Storage";
|
|
homepage = "https://github.com/fsspec/adlfs";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|