3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/rpl/default.nix
milahu a4df6db57d
rpl: update to 4467bd4 (#140161)
* rpl: update to 1.10
Changes upstream as discussed in https://github.com/kcoyner/rpl/issues/7
- manpage missing because of a missing python package.
2021-10-03 00:37:35 +02:00

43 lines
916 B
Nix

{ lib, fetchFromGitHub, python3Packages }:
let
rev = "4467bd46a7a798f738247a7f090c1505176bd597";
sha256 = "0yf3pc3fws4nnh4nd8d3jpglmsyi69d17qqgpcnkpqca5l4cd25w";
in
python3Packages.buildPythonApplication rec {
pname = "rpl";
version = "1.10";
# Tests not included in pip package.
doCheck = false;
src = fetchFromGitHub {
owner = "rrthomas";
repo = "rpl";
inherit rev sha256;
};
patches = [
./remove-argparse-manpage.diff # quickfix for ImportError: No module named build_manpages.build_manpages
];
buildInputs = [
#python3Packages.argparse-manpage # TODO
python3Packages.chardet
];
installPhase = ''
mkdir -p $out/bin
mv rpl $out/bin
'';
meta = with lib; {
description = "Replace strings in files";
homepage = "https://github.com/rrthomas/rpl";
license = licenses.gpl2;
maintainers = with maintainers; [ teto ];
};
}