depot/third_party/nixpkgs/pkgs/development/python-modules/adlfs/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

50 lines
1,016 B
Nix

{ lib
, aiohttp
, azure-core
, azure-datalake-store
, azure-identity
, azure-storage-blob
, buildPythonPackage
, fetchFromGitHub
, fsspec
, pythonOlder
}:
buildPythonPackage rec {
pname = "adlfs";
version = "2023.10.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fsspec";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-pmKqMNVSW+Jzz4MZaiUbzXFcLzTKj52RJH7WvFMj6NM=";
};
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";
changelog = "https://github.com/fsspec/adlfs/blob/${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}