@@ -1,22 +1,41 @@
1−{ lib, fetchFromGitHub, pythonPackages }:
1+{ lib, fetchFromGitHub, python3Packages }:
22
3−pythonPackages.buildPythonApplication rec {
3+let
4+ rev = "4467bd46a7a798f738247a7f090c1505176bd597";
5+ sha256 = "0yf3pc3fws4nnh4nd8d3jpglmsyi69d17qqgpcnkpqca5l4cd25w";
6+in
7+
8+python3Packages.buildPythonApplication rec {
49 pname = "rpl";
5− version = "1.5.7";
10+ version = "1.10";
611
712 # Tests not included in pip package.
813 doCheck = false;
914
15+
1016 src = fetchFromGitHub {
11− owner = "kcoyner";
17+ owner = "rrthomas";
1218 repo = "rpl";
13− rev = "v${version}";
14− sha256 = "1xhpgcmq91ivy9ijfyz5ilg51m7fz8ar2077r7gq246j8gbf8ggr";
19+ inherit rev sha256;
1520 };
1621
22+ patches = [
23+ ./remove-argparse-manpage.diff # quickfix for ImportError: No module named build_manpages.build_manpages
24+ ];
25+
26+ buildInputs = [
27+ #python3Packages.argparse-manpage # TODO
28+ python3Packages.chardet
29+ ];
30+
31+ installPhase = ''
32+ mkdir -p $out/bin
33+ mv rpl $out/bin
34+ '';
35+
1736 meta = with lib; {
1837 description = "Replace strings in files";
19− homepage = "https://github.com/kcoyner/rpl";
38+ homepage = "https://github.com/rrthomas/rpl";
2039 license = licenses.gpl2;
2140 maintainers = with maintainers; [ teto ];
2241 };