Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/applications/misc/calibre/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ mkDerivation rec {
sip
# the following are distributed with calibre, but we use upstream instead
odfpy
]
] ++ lib.optional (unrarSupport) unrardll
);

installPhase = ''
Expand Down
22 changes: 22 additions & 0 deletions pkgs/development/python-modules/unrardll/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7258,6 +7258,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 { };
Expand Down