mackup: drop nose and six dependencies; modernize
This commit is contained in:
parent
18cb69fb9b
commit
f68963c364
@ -3,6 +3,7 @@
|
|||||||
python3Packages,
|
python3Packages,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
procps,
|
procps,
|
||||||
|
fetchpatch2,
|
||||||
}:
|
}:
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "mackup";
|
pname = "mackup";
|
||||||
@ -16,26 +17,29 @@ python3Packages.buildPythonApplication rec {
|
|||||||
hash = "sha256-hAIl9nGFRaROlt764IZg4ejw+b1dpnYpiYq4CB9dJqQ=";
|
hash = "sha256-hAIl9nGFRaROlt764IZg4ejw+b1dpnYpiYq4CB9dJqQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch2 {
|
||||||
|
name = "remove-six.patch";
|
||||||
|
url = "https://github.com/lra/mackup/commit/31ae717d40360e2e9d2d46518f57dcdc95b165ca.patch";
|
||||||
|
hash = "sha256-M2gtY03SOlPefsHREPmeajhnfmIoHbNYjm+W4YZqwKM=";
|
||||||
|
excludes = [ "CHANGELOG.md" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace mackup/utils.py \
|
substituteInPlace mackup/utils.py \
|
||||||
--replace-fail '"/usr/bin/pgrep"' '"${lib.getExe' procps "pgrep"}"'
|
--replace-fail '"/usr/bin/pgrep"' '"${lib.getExe' procps "pgrep"}"' \
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = with python3Packages; [
|
build-system = with python3Packages; [ poetry-core ];
|
||||||
poetry-core
|
|
||||||
nose
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
dependencies = with python3Packages; [ docopt ];
|
||||||
six
|
|
||||||
docopt
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "mackup" ];
|
pythonImportsCheck = [ "mackup" ];
|
||||||
|
|
||||||
checkPhase = ''
|
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
|
||||||
nosetests
|
|
||||||
'';
|
pytestFlagsArray = [ "tests/*.py" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A tool to keep your application settings in sync (OS X/Linux)";
|
description = "A tool to keep your application settings in sync (OS X/Linux)";
|
||||||
|
Loading…
Reference in New Issue
Block a user