2021-10-04 12:37:57 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-04 12:37:57 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "rpl";
|
2021-10-04 12:37:57 +00:00
|
|
|
version = "1.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Tests not included in pip package.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-10-04 12:37:57 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-10-04 12:37:57 +00:00
|
|
|
owner = "rrthomas";
|
|
|
|
repo = "rpl";
|
|
|
|
rev = "4467bd46a7a798f738247a7f090c1505176bd597";
|
|
|
|
sha256 = "0yf3pc3fws4nnh4nd8d3jpglmsyi69d17qqgpcnkpqca5l4cd25w";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-04 12:37:57 +00: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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Replace strings in files";
|
2021-10-04 12:37:57 +00:00
|
|
|
homepage = "https://github.com/rrthomas/rpl";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ teto ];
|
|
|
|
};
|
|
|
|
}
|