diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2021-03-25 12:35:28 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2021-03-25 12:35:28 +0100 |
commit | 63434aa2617e8b6d578c049953cb1830a26b8dd8 (patch) | |
tree | 408e6b1259a07a76ae9be14a8a75db1f1f55ee53 /pkgs/tools/compression/dtrx | |
parent | 7012ab1b5420e17c854ec858b4611bcc06bd7638 (diff) | |
download | nixlib-63434aa2617e8b6d578c049953cb1830a26b8dd8.tar nixlib-63434aa2617e8b6d578c049953cb1830a26b8dd8.tar.gz nixlib-63434aa2617e8b6d578c049953cb1830a26b8dd8.tar.bz2 nixlib-63434aa2617e8b6d578c049953cb1830a26b8dd8.tar.lz nixlib-63434aa2617e8b6d578c049953cb1830a26b8dd8.tar.xz nixlib-63434aa2617e8b6d578c049953cb1830a26b8dd8.tar.zst nixlib-63434aa2617e8b6d578c049953cb1830a26b8dd8.zip |
dtrx: stay with python2
Diffstat (limited to 'pkgs/tools/compression/dtrx')
-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 91d59a4de0f8..6c4f2f6e854e 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/"; |