mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
python312Packages.sysrsync: init at 1.1.1
This commit is contained in:
45
pkgs/development/python-modules/sysrsync/default.nix
Normal file
45
pkgs/development/python-modules/sysrsync/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user