1 { lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, p7zip,
2 unzip, cabextract, zip, zopfli, lzip, zpaq, gnutar, gnugrep, diffutils, file,
5 # unrar is unfree, as well as 7z with unrar support, not including it (patool doesn't support unar)
8 compression-utilities = [
25 buildPythonPackage rec {
29 #pypi doesn't have test data
30 src = fetchFromGitHub {
33 rev = "upstream/${version}";
34 sha256 = "0v4r77sm3yzh7y1whfwxmp01cchd82jbhvbg9zsyd2yb944imzjy";
38 substituteInPlace patoolib/util.py \
39 --replace "path = None" 'path = append_to_path(os.environ["PATH"], "${lib.makeBinPath compression-utilities}")'
42 checkInputs = [ pytestCheckHook ] ++ compression-utilities;
52 description = "portable archive file manager";
53 homepage = "https://wummel.github.io/patool/";
54 license = licenses.gpl3;
55 maintainers = with maintainers; [ marius851000 ];