nixpkgs/pkgs/tools/misc/pipe-rename/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
794 B
Nix
Raw Normal View History

2021-09-20 23:13:44 +00:00
{ lib, rustPlatform, fetchCrate, python3 }:
rustPlatform.buildRustPackage rec {
pname = "pipe-rename";
version = "1.6.5";
2021-09-20 23:13:44 +00:00
src = fetchCrate {
inherit pname version;
hash = "sha256-av/ig76O7t3dB4Irfi3yqyL30nkJJCzs5EayWRbpOI0=";
2021-09-20 23:13:44 +00:00
};
cargoHash = "sha256-3p6Bf9UfCb5uc5rp/yuXixcDkuXfTiboLl8TI0O52hE=";
2021-09-20 23:13:44 +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";
homepage = "https://github.com/marcusbuffett/pipe-rename";
2021-09-20 23:13:44 +00:00
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "renamer";
};
}