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