python312Packages.sysrsync: init at 1.1.1

This commit is contained in:
Dmitry Kalinkin
2024-09-05 18:28:54 -04:00
parent 9ac63f87b5
commit 589165439b
2 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
{
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 ];
};
}

View File

@@ -15033,6 +15033,8 @@ self: super: with self; {
syslog-rfc5424-formatter = callPackage ../development/python-modules/syslog-rfc5424-formatter { };
sysrsync = callPackage ../development/python-modules/sysrsync { };
systembridge = callPackage ../development/python-modules/systembridge { };
systembridgeconnector = callPackage ../development/python-modules/systembridgeconnector { };