1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 setuptools,
7 rsync,
8 toml,
9}:
10
11buildPythonPackage rec {
12 pname = "sysrsync";
13 version = "1.1.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "gchamon";
18 repo = "sysrsync";
19 tag = version;
20 hash = "sha256-2Sz3JrNmIGOnad+qjRzbAgsFEzDtwBT0KLEFyQKZra4=";
21 };
22
23 postPatch = ''
24 substituteInPlace sysrsync/command_maker.py \
25 --replace-fail "'rsync'" "'${rsync}/bin/rsync'"
26 '';
27
28 build-system = [
29 poetry-core
30 setuptools
31 ];
32
33 dependencies = [
34 toml
35 ];
36
37 pythonImportsCheck = [ "sysrsync" ];
38
39 meta = with lib; {
40 description = "Simple and safe system's rsync wrapper for Python";
41 homepage = "https://github.com/gchamon/sysrsync";
42 license = licenses.mit;
43 maintainers = with maintainers; [ veprbl ];
44 };
45}