159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
45 lines
849 B
Nix
45 lines
849 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
setuptools,
|
|
rsync,
|
|
toml,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sysrsync";
|
|
version = "1.1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gchamon";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-2Sz3JrNmIGOnad+qjRzbAgsFEzDtwBT0KLEFyQKZra4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace sysrsync/command_maker.py \
|
|
--replace-fail "'rsync'" "'${rsync}/bin/rsync'"
|
|
'';
|
|
|
|
build-system = [
|
|
poetry-core
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
toml
|
|
];
|
|
|
|
pythonImportsCheck = [ "sysrsync" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple and safe system's rsync wrapper for Python";
|
|
homepage = "https://github.com/gchamon/sysrsync";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ veprbl ];
|
|
};
|
|
}
|