13 unar, # Free alternative to unrar
23 compression-utilities = [
39 buildPythonPackage rec {
42 format = "setuptools";
44 #pypi doesn't have test data
45 src = fetchFromGitHub {
48 rev = "refs/tags/${version}";
49 hash = "sha256-dWyC8uTVUb06liNcJaG4oK9wqIDmwAl6i6cg4XRRRdQ=";
53 substituteInPlace patoolib/util.py \
54 --replace "path = None" 'path = os.environ["PATH"] + ":${lib.makeBinPath compression-utilities}"'
57 nativeCheckInputs = [ pytestCheckHook ] ++ compression-utilities;
64 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_ar" ];
67 description = "portable archive file manager";
68 mainProgram = "patool";
69 homepage = "https://wummel.github.io/patool/";
70 license = licenses.gpl3;
71 maintainers = with maintainers; [ marius851000 ];