2021-09-20 23:13:44 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, python3 }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pipe-rename";
|
2023-06-28 22:18:52 +00:00
|
|
|
version = "1.6.5";
|
2021-09-20 23:13:44 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-06-28 22:18:52 +00:00
|
|
|
hash = "sha256-av/ig76O7t3dB4Irfi3yqyL30nkJJCzs5EayWRbpOI0=";
|
2021-09-20 23:13:44 +00:00
|
|
|
};
|
|
|
|
|
2023-06-28 22:18:52 +00:00
|
|
|
cargoHash = "sha256-3p6Bf9UfCb5uc5rp/yuXixcDkuXfTiboLl8TI0O52hE=";
|
2021-09-20 23:13:44 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ python3 ];
|
2021-09-20 23:13:44 +00:00
|
|
|
|
2023-11-18 22:26:17 +00:00
|
|
|
checkFlags = [
|
|
|
|
# tests are failing upstream
|
|
|
|
"--skip=test_dot"
|
|
|
|
"--skip=test_dotdot"
|
|
|
|
];
|
|
|
|
|
2021-09-20 23:13:44 +00:00
|
|
|
preCheck = ''
|
|
|
|
patchShebangs tests/editors/env-editor.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Rename your files using your favorite text editor";
|
2023-05-21 16:55:21 +00:00
|
|
|
homepage = "https://github.com/marcusbuffett/pipe-rename";
|
2021-09-20 23:13:44 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
mainProgram = "renamer";
|
|
|
|
};
|
|
|
|
}
|