mackup: init at 0.8.40
This commit is contained in:
parent
fe6b10e20b
commit
61d1d59c32
49
pkgs/by-name/ma/mackup/package.nix
Normal file
49
pkgs/by-name/ma/mackup/package.nix
Normal file
@ -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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user