at 22.05-pre 36 lines 909 B view raw
1{ lib, python3Packages, librsync }: 2 3let 4 pypkgs = python3Packages; 5 6in 7pypkgs.buildPythonApplication rec { 8 pname = "rdiff-backup"; 9 version = "2.0.5"; 10 11 src = pypkgs.fetchPypi { 12 inherit pname version; 13 sha256 = "sha256-VNFgOOYgFO2RbHHIMDsH0vphpqaAOMoYn8LTFTSw84s="; 14 }; 15 16 # pkg_resources fails to find the version and then falls back to "DEV" 17 postPatch = '' 18 substituteInPlace src/rdiff_backup/Globals.py \ 19 --replace 'version = "DEV"' 'version = "${version}"' 20 ''; 21 22 buildInputs = [ librsync ]; 23 24 nativeBuildInputs = with pypkgs; [ setuptools-scm ]; 25 26 # no tests from pypi 27 doCheck = false; 28 29 meta = with lib; { 30 description = "Backup system trying to combine best a mirror and an incremental backup system"; 31 homepage = "https://rdiff-backup.net"; 32 license = licenses.gpl2Only; 33 maintainers = with maintainers; [ peterhoeg ]; 34 platforms = platforms.all; 35 }; 36}