evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / sysrsync / default.nix
blob809ca324cce1258aa53c4b7561e866ae8402ce30
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   poetry-core,
6   setuptools,
7   rsync,
8   toml,
9 }:
11 buildPythonPackage rec {
12   pname = "sysrsync";
13   version = "1.1.1";
14   pyproject = true;
16   src = fetchFromGitHub {
17     owner = "gchamon";
18     repo = pname;
19     rev = "refs/tags/${version}";
20     hash = "sha256-2Sz3JrNmIGOnad+qjRzbAgsFEzDtwBT0KLEFyQKZra4=";
21   };
23   postPatch = ''
24     substituteInPlace sysrsync/command_maker.py \
25       --replace-fail "'rsync'" "'${rsync}/bin/rsync'"
26   '';
28   build-system = [
29     poetry-core
30     setuptools
31   ];
33   dependencies = [
34     toml
35   ];
37   pythonImportsCheck = [ "sysrsync" ];
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   };