Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
procps,
|
|
}:
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "mackup";
|
|
version = "0.8.41";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lra";
|
|
repo = "mackup";
|
|
rev = "${version}";
|
|
hash = "sha256-eWSBl8BTg2FLI21DQcnepBFPF08bfm0V8lYB4mMbAiw=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace mackup/utils.py \
|
|
--replace-fail '"/usr/bin/pgrep"' '"${lib.getExe' procps "pgrep"}"' \
|
|
'';
|
|
|
|
build-system = with python3Packages; [ poetry-core ];
|
|
|
|
dependencies = with python3Packages; [ docopt ];
|
|
|
|
pythonImportsCheck = [ "mackup" ];
|
|
|
|
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
|
|
|
|
enabledTestPaths = [ "tests/*.py" ];
|
|
|
|
# Disabling tests failing on darwin due to a missing pgrep binary on procps
|
|
disabledTests = [ "test_is_process_running" ];
|
|
|
|
meta = {
|
|
description = "Tool to keep your application settings in sync (OS X/Linux)";
|
|
changelog = "https://github.com/lra/mackup/releases/tag/${version}";
|
|
license = lib.licenses.agpl3Only;
|
|
homepage = "https://github.com/lra/mackup";
|
|
maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
|
|
mainProgram = "mackup";
|
|
};
|
|
}
|