diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-03-25 18:14:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-25 18:14:01 +0000 |
commit | 7c9222212f37f17ec9708d721d65c48c09717a26 (patch) | |
tree | 2673d281bf526ca79d248fcbde98e486386c8c92 /pkgs/tools/compression | |
parent | 4dc869e40380e8346a8d076ac3dd1e3ee0b2603b (diff) | |
parent | 06733bcf290555154666410f2fb30ee4a2aba6c0 (diff) | |
download | nixpkgs-7c9222212f37f17ec9708d721d65c48c09717a26.tar nixpkgs-7c9222212f37f17ec9708d721d65c48c09717a26.tar.gz nixpkgs-7c9222212f37f17ec9708d721d65c48c09717a26.tar.bz2 nixpkgs-7c9222212f37f17ec9708d721d65c48c09717a26.tar.lz nixpkgs-7c9222212f37f17ec9708d721d65c48c09717a26.tar.xz nixpkgs-7c9222212f37f17ec9708d721d65c48c09717a26.tar.zst nixpkgs-7c9222212f37f17ec9708d721d65c48c09717a26.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/tools/compression')
-rw-r--r-- | pkgs/tools/compression/dtrx/default.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/tools/compression/dtrx/default.nix b/pkgs/tools/compression/dtrx/default.nix index 91d59a4de0f..6c4f2f6e854 100644 --- a/pkgs/tools/compression/dtrx/default.nix +++ b/pkgs/tools/compression/dtrx/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, pythonPackages +{ lib, fetchurl, python2Packages , gnutar, unzip, lhasa, rpm, binutils, cpio, gzip, p7zip, cabextract, unrar, unshield , bzip2, xz, lzip # unzip is handled by p7zip @@ -11,7 +11,7 @@ let ++ lib.optional (unrarSupport) unrar ++ [ bzip2 xz lzip ]); -in pythonPackages.buildPythonApplication rec { +in python2Packages.buildPythonApplication rec { pname = "dtrx"; version = "7.1"; @@ -24,6 +24,17 @@ in pythonPackages.buildPythonApplication rec { wrapProgram "$out/bin/dtrx" --prefix PATH : "${archivers}" ''; + checkPhase = '' + python2 tests/compare.py + ''; + + checkInputs = with python2Packages; [ + pyyaml + ]; + + # custom test suite fails + doCheck = false; + meta = with lib; { description = "Do The Right Extraction: A tool for taking the hassle out of extracting archives"; homepage = "https://brettcsmith.org/2007/dtrx/"; |