depot/third_party/nixpkgs/pkgs/development/python-modules/sysrsync/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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 ];
};
}