sftpman: 1.2.2 -> 2.1.0

Fugi 820a91c8 cc84f5eb

+21 -19
+3
doc/release-notes/rl-2511.section.md
··· 115 115 116 116 - `fetchgit`: Add `rootDir` argument to limit the resulting source to one subdirectory of the whole Git repository. Corresponding `--root-dir` option added to `nix-prefetch-git`. 117 117 118 + - `sftpman` has been updated to version 2, a rewrite in Rust which is mostly backward compatible but does include some changes to the CLI. 119 + For more information, [check the project's README](https://github.com/spantaleev/sftpman-rs#is-sftpman-v2-compatible-with-sftpman-v1). 120 + 118 121 - The `clickhouse` package now track the stable upstream version per [upstream's 119 122 recommendation](https://clickhouse.com/docs/faq/operations/production). Users 120 123 can continue to use the `clickhouse-lts` package if desired.
+18 -19
pkgs/by-name/sf/sftpman/package.nix
··· 1 1 { 2 2 lib, 3 - python3Packages, 4 3 fetchFromGitHub, 4 + rustPlatform, 5 + nix-update-script, 5 6 }: 6 7 7 - python3Packages.buildPythonApplication rec { 8 + rustPlatform.buildRustPackage (finalAttrs: { 8 9 pname = "sftpman"; 9 - version = "1.2.2"; 10 - pyproject = true; 10 + version = "2.1.0"; 11 + 12 + passthru.updateScript = nix-update-script { }; 11 13 12 14 src = fetchFromGitHub { 13 15 owner = "spantaleev"; 14 - repo = "sftpman"; 15 - rev = version; 16 - hash = "sha256-YxqN4+u0nYUWehbyRhjddIo2sythH3E0fiPSyrUlWhM="; 16 + repo = "sftpman-rs"; 17 + tag = "v${finalAttrs.version}"; 18 + hash = "sha256-6IhMBnp951mKfG054svFTezf3fpOEMJusRj45qVThmA="; 17 19 }; 18 20 19 - build-system = with python3Packages; [ setuptools ]; 20 - 21 - checkPhase = '' 22 - $out/bin/sftpman help 23 - ''; 24 - 25 - pythonImportsCheck = [ "sftpman" ]; 21 + cargoHash = "sha256-TltizTFKrMvHNQcSoow9fuNLy6appYq9Y4LicEQrfRE="; 26 22 27 23 meta = with lib; { 28 - homepage = "https://github.com/spantaleev/sftpman"; 24 + homepage = "https://github.com/spantaleev/sftpman-rs"; 29 25 description = "Application that handles sshfs/sftp file systems mounting"; 30 - license = licenses.gpl3; 31 - platforms = platforms.unix; 32 - maintainers = with maintainers; [ contrun ]; 26 + license = licenses.agpl3Only; 27 + platforms = platforms.linux; 28 + maintainers = with maintainers; [ 29 + contrun 30 + fugi 31 + ]; 33 32 mainProgram = "sftpman"; 34 33 }; 35 - } 34 + })