2021-07-14 22:03:04 +00:00
|
|
|
{ lib, python3Packages, librsync }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
let
|
|
|
|
pypkgs = python3Packages;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
in
|
|
|
|
pypkgs.buildPythonApplication rec {
|
|
|
|
pname = "rdiff-backup";
|
|
|
|
version = "2.0.5";
|
|
|
|
|
|
|
|
src = pypkgs.fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "sha256-VNFgOOYgFO2RbHHIMDsH0vphpqaAOMoYn8LTFTSw84s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00: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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
nativeBuildInputs = with pypkgs; [ setuptools-scm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
# no tests from pypi
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Backup system trying to combine best a mirror and an incremental backup system";
|
2021-07-14 22:03:04 +00:00
|
|
|
homepage = "https://rdiff-backup.net";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|