Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitHub, python3Packages }: 2 3python3Packages.buildPythonApplication rec { 4 pname = "rpl"; 5 version = "1.10"; 6 7 # Tests not included in pip package. 8 doCheck = false; 9 10 11 src = fetchFromGitHub { 12 owner = "rrthomas"; 13 repo = "rpl"; 14 rev = "4467bd46a7a798f738247a7f090c1505176bd597"; 15 sha256 = "0yf3pc3fws4nnh4nd8d3jpglmsyi69d17qqgpcnkpqca5l4cd25w"; 16 }; 17 18 patches = [ 19 ./remove-argparse-manpage.diff # quickfix for ImportError: No module named build_manpages.build_manpages 20 ]; 21 22 buildInputs = [ 23 #python3Packages.argparse-manpage # TODO 24 python3Packages.chardet 25 ]; 26 27 installPhase = '' 28 mkdir -p $out/bin 29 mv rpl $out/bin 30 ''; 31 32 meta = with lib; { 33 description = "Replace strings in files"; 34 homepage = "https://github.com/rrthomas/rpl"; 35 license = licenses.gpl2; 36 maintainers = with maintainers; [ teto ]; 37 }; 38}