2021-10-02 22:37:35 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2017-09-28 07:25:36 +00:00
|
|
|
|
2021-10-02 22:37:35 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2017-09-28 07:25:36 +00:00
|
|
|
pname = "rpl";
|
2021-10-02 22:37:35 +00:00
|
|
|
version = "1.10";
|
2017-09-28 07:25:36 +00:00
|
|
|
|
|
|
|
# Tests not included in pip package.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-10-02 22:37:35 +00:00
|
|
|
|
2017-09-28 07:25:36 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-10-02 22:51:45 +00:00
|
|
|
owner = "rrthomas";
|
|
|
|
repo = "rpl";
|
|
|
|
rev = "4467bd46a7a798f738247a7f090c1505176bd597";
|
|
|
|
sha256 = "0yf3pc3fws4nnh4nd8d3jpglmsyi69d17qqgpcnkpqca5l4cd25w";
|
2017-09-28 07:25:36 +00:00
|
|
|
};
|
|
|
|
|
2021-10-02 22:37:35 +00:00
|
|
|
patches = [
|
|
|
|
./remove-argparse-manpage.diff # quickfix for ImportError: No module named build_manpages.build_manpages
|
|
|
|
];
|
|
|
|
|
2023-06-16 04:07:16 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-10-02 22:37:35 +00:00
|
|
|
#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 07:25:36 +00:00
|
|
|
description = "Replace strings in files";
|
2021-10-02 22:37:35 +00:00
|
|
|
homepage = "https://github.com/rrthomas/rpl";
|
2017-09-28 07:25:36 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ teto ];
|
|
|
|
};
|
|
|
|
}
|