Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 73 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pytestCheckHook, p7zip, cabextract, zip, lzip, zpaq, gnutar, unar, # Free alternative to unrar gnugrep, diffutils, file, gzip, bzip2, xz,}:
let compression-utilities = [ p7zip gnutar unar cabextract zip lzip zpaq gzip gnugrep diffutils bzip2 file xz ];inbuildPythonPackage rec { pname = "patool"; version = "2.1.1"; format = "setuptools";
#pypi doesn't have test data src = fetchFromGitHub { owner = "wummel"; repo = pname; rev = "upstream/${version}"; hash = "sha256-B2P6JldMOAxr4WS+wST+kRVvEm41zH3Nh5LLKoFOws4="; };
postPatch = '' substituteInPlace patoolib/util.py \ --replace "path = None" 'path = os.environ["PATH"] + ":${lib.makeBinPath compression-utilities}"' '';
nativeCheckInputs = [ pytestCheckHook ] ++ compression-utilities;
disabledTests = [ "test_unzip" "test_unzip_file" "test_zip" "test_zip_file" ] ++ lib.optionals stdenv.isDarwin [ "test_ar" ];
meta = with lib; { description = "portable archive file manager"; mainProgram = "patool"; homepage = "https://wummel.github.io/patool/"; license = licenses.gpl3; maintainers = with maintainers; [ marius851000 ]; };}