2021-07-12 03:16:18 +01:00
|
|
|
{ lib, python3Packages, librsync }:
|
2011-09-05 09:32:55 +01:00
|
|
|
|
2021-07-12 03:16:18 +01:00
|
|
|
let
|
|
|
|
pypkgs = python3Packages;
|
2007-09-08 21:45:23 +01:00
|
|
|
|
2021-07-12 03:16:18 +01:00
|
|
|
in
|
|
|
|
pypkgs.buildPythonApplication rec {
|
|
|
|
pname = "rdiff-backup";
|
|
|
|
version = "2.0.5";
|
|
|
|
|
|
|
|
src = pypkgs.fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "sha256-VNFgOOYgFO2RbHHIMDsH0vphpqaAOMoYn8LTFTSw84s=";
|
2007-09-08 21:45:23 +01:00
|
|
|
};
|
|
|
|
|
2021-07-12 03:16:18 +01:00
|
|
|
# pkg_resources fails to find the version and then falls back to "DEV"
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/rdiff_backup/Globals.py \
|
|
|
|
--replace 'version = "DEV"' 'version = "${version}"'
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ librsync ];
|
2015-03-29 10:40:35 +01:00
|
|
|
|
2021-07-12 03:16:18 +01:00
|
|
|
nativeBuildInputs = with pypkgs; [ setuptools-scm ];
|
2007-09-08 21:45:23 +01:00
|
|
|
|
2021-07-12 03:16:18 +01:00
|
|
|
# no tests from pypi
|
2016-11-09 14:59:47 +00:00
|
|
|
doCheck = false;
|
2007-09-08 21:45:23 +01:00
|
|
|
|
2021-07-12 03:16:18 +01:00
|
|
|
meta = with lib; {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Backup system trying to combine best a mirror and an incremental backup system";
|
2021-07-12 03:16:18 +01:00
|
|
|
homepage = "https://rdiff-backup.net";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.all;
|
2008-04-23 08:34:20 +01:00
|
|
|
};
|
2007-09-08 21:45:23 +01:00
|
|
|
}
|