Commit 74ae5481 authored by Jan Christoph Bischko's avatar Jan Christoph Bischko
Browse files

mackup: 0.8.41 -> 0.9.3

parent 4687cac3
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
{
  lib,
  python3Packages,
  fetchFromGitHub,
  lib,
  procps,
  python3Packages,
  stdenv,
}:
python3Packages.buildPythonApplication rec {
  pname = "mackup";
  version = "0.8.41";
  version = "0.9.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "lra";
    repo = "mackup";
    rev = "${version}";
    hash = "sha256-eWSBl8BTg2FLI21DQcnepBFPF08bfm0V8lYB4mMbAiw=";
    hash = "sha256-ysVABY/PWwqbWEATpzIrMkppHExOxDcia5HFr+VGQQc=";
  };

  postPatch = ''
@@ -21,9 +22,9 @@ python3Packages.buildPythonApplication rec {
      --replace-fail '"/usr/bin/pgrep"' '"${lib.getExe' procps "pgrep"}"' \
  '';

  build-system = with python3Packages; [ poetry-core ];
  build-system = with python3Packages; [ hatchling ];

  dependencies = with python3Packages; [ docopt ];
  dependencies = with python3Packages; [ docopt-ng ];

  pythonImportsCheck = [ "mackup" ];

@@ -32,7 +33,7 @@ python3Packages.buildPythonApplication rec {
  pytestFlagsArray = [ "tests/*.py" ];

  # Disabling tests failing on darwin due to a missing pgrep binary on procps
  disabledTests = [ "test_is_process_running" ];
  disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_is_process_running" ];

  meta = {
    description = "A tool to keep your application settings in sync (OS X/Linux)";