2021-10-03 00:37:35 +02:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2017-09-28 09:25:36 +02:00
|
|
|
|
2021-10-03 00:37:35 +02:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2017-09-28 09:25:36 +02:00
|
|
|
pname = "rpl";
|
2021-10-03 00:37:35 +02:00
|
|
|
version = "1.10";
|
2017-09-28 09:25:36 +02:00
|
|
|
|
|
|
|
# Tests not included in pip package.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-10-03 00:37:35 +02:00
|
|
|
|
2017-09-28 09:25:36 +02:00
|
|
|
src = fetchFromGitHub {
|
2021-10-03 00:51:45 +02:00
|
|
|
owner = "rrthomas";
|
|
|
|
repo = "rpl";
|
|
|
|
rev = "4467bd46a7a798f738247a7f090c1505176bd597";
|
|
|
|
sha256 = "0yf3pc3fws4nnh4nd8d3jpglmsyi69d17qqgpcnkpqca5l4cd25w";
|
2017-09-28 09:25:36 +02:00
|
|
|
};
|
|
|
|
|
2021-10-03 00:37:35 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-09-28 09:25:36 +02:00
|
|
|
description = "Replace strings in files";
|
2021-10-03 00:37:35 +02:00
|
|
|
homepage = "https://github.com/rrthomas/rpl";
|
2017-09-28 09:25:36 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ teto ];
|
|
|
|
};
|
|
|
|
}
|