Merge pull request #98430 from nyanloutre/add_python_unrardll

calibre: Add python unrardll
This commit is contained in:
Doron Behar 2020-12-07 18:46:44 +02:00 committed by GitHub
commit c3ae8cd1cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 1 deletions

@ -99,7 +99,7 @@ mkDerivation rec {
sip
# the following are distributed with calibre, but we use upstream instead
odfpy
]
] ++ lib.optional (unrarSupport) unrardll
);
installPhase = ''

@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, unrar }:
buildPythonPackage rec {
pname = "unrardll";
version = "0.1.4";
src = fetchPypi {
inherit pname version;
sha256 = "4149c0729cf96a0bae80360e7d94dc40af1088c8da7f6eb8d10e09b8632e92ad";
};
buildInputs = [ unrar ];
pythonImportsCheck = [ "unrardll" ];
meta = with lib; {
description = "Wrap the Unrar DLL to enable unraring of files in python";
homepage = "https://github.com/kovidgoyal/unrardll";
license = licenses.bsd3;
maintainers = with maintainers; [ nyanloutre ];
};
}

@ -7568,6 +7568,8 @@ in {
unpaddedbase64 = callPackage ../development/python-modules/unpaddedbase64 { };
unrardll = callPackage ../development/python-modules/unrardll { };
unrpa = callPackage ../development/python-modules/unrpa { };
untangle = callPackage ../development/python-modules/untangle { };