nixpkgs/pkgs/by-name/ma/mackup/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.2 KiB
Nix
Raw Normal View History

2024-05-13 11:55:07 +00:00
{
lib,
python3Packages,
fetchFromGitHub,
procps,
}:
python3Packages.buildPythonApplication rec {
pname = "mackup";
2024-08-08 09:51:01 +00:00
version = "0.8.41";
2024-05-13 11:55:07 +00:00
pyproject = true;
src = fetchFromGitHub {
owner = "lra";
repo = "mackup";
2024-08-08 09:51:01 +00:00
rev = "${version}";
hash = "sha256-eWSBl8BTg2FLI21DQcnepBFPF08bfm0V8lYB4mMbAiw=";
2024-05-13 11:55:07 +00:00
};
postPatch = ''
substituteInPlace mackup/utils.py \
--replace-fail '"/usr/bin/pgrep"' '"${lib.getExe' procps "pgrep"}"' \
2024-05-13 11:55:07 +00:00
'';
build-system = with python3Packages; [ poetry-core ];
2024-05-13 11:55:07 +00:00
dependencies = with python3Packages; [ docopt ];
2024-05-13 11:55:07 +00:00
pythonImportsCheck = [ "mackup" ];
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
pytestFlagsArray = [ "tests/*.py" ];
2024-05-13 11:55:07 +00:00
2024-08-08 09:51:01 +00:00
# Disabling tests failing on darwin due to a missing pgrep binary on procps
disabledTests = [ "test_is_process_running" ];
2024-05-13 11:55:07 +00:00
meta = {
description = "A 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";
};
}