diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-06-27 14:06:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-27 14:06:48 +0200 |
commit | f9cd9ff4fb5e80fa6f9f3b33f8ca39430b064d14 (patch) | |
tree | 07e135b66de916b169a8197801ac0e6ab3182e52 /pkgs/by-name/ma | |
parent | 20a0ea7875916b44335b3e15415aa359e39b12ed (diff) | |
parent | 61d1d59c32e650d97dc55d40a55788cb21115d13 (diff) |
Merge pull request #311340 from luftmensch-luftmensch/mackup_0.8.40
Diffstat (limited to 'pkgs/by-name/ma')
-rw-r--r-- | pkgs/by-name/ma/mackup/package.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/by-name/ma/mackup/package.nix b/pkgs/by-name/ma/mackup/package.nix new file mode 100644 index 0000000000000..b39590b6454a2 --- /dev/null +++ b/pkgs/by-name/ma/mackup/package.nix @@ -0,0 +1,49 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + procps, +}: +python3Packages.buildPythonApplication rec { + pname = "mackup"; + version = "0.8.40"; + pyproject = true; + + src = fetchFromGitHub { + owner = "lra"; + repo = "mackup"; + rev = "refs/tags/${version}"; + hash = "sha256-hAIl9nGFRaROlt764IZg4ejw+b1dpnYpiYq4CB9dJqQ="; + }; + + postPatch = '' + substituteInPlace mackup/utils.py \ + --replace-fail '"/usr/bin/pgrep"' '"${lib.getExe' procps "pgrep"}"' + ''; + + nativeBuildInputs = with python3Packages; [ + poetry-core + pythonRelaxDepsHook + nose + ]; + + propagatedBuildInputs = with python3Packages; [ + six + docopt + ]; + + pythonImportsCheck = [ "mackup" ]; + + checkPhase = '' + nosetests + ''; + + 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"; + }; +} |