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

56 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, textual
, universal-pathlib
, adlfs
, aiohttp
, gcsfs
, paramiko
, requests
, s3fs
}:
buildPythonPackage rec {
pname = "textual-universal-directorytree";
version = "1.0.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "juftin";
repo = "textual-universal-directorytree";
rev = "refs/tags/v${version}";
hash = "sha256-FL2bwPGqBmDn33Rhj7+VEpuqB4znEAw+GGAODTs25oo=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
textual
universal-pathlib
];
passthru.optional-dependencies = {
remote = [
adlfs
aiohttp
gcsfs
paramiko
requests
s3fs
];
};
pythonImportsCheck = [ "textual_universal_directorytree" ];
meta = with lib; {
description = "Textual plugin for a DirectoryTree compatible with remote filesystems";
homepage = "https://github.com/juftin/textual-universal-directorytree";
changelog = "https://github.com/juftin/textual-universal-directorytree/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}