rarfile: 2.6 -> 3.0 (#25885)
* rarfile: 2.6 -> 3.0 * rarfile: enable tests
This commit is contained in:
committed by
Jörg Thalheim
parent
d89aaca611
commit
f76ce5983d
29
pkgs/development/python-modules/rarfile/default.nix
Normal file
29
pkgs/development/python-modules/rarfile/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, pytest, nose, unrar, glibcLocales }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "rarfile-${version}";
|
||||
version = "3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "markokr";
|
||||
repo = "rarfile";
|
||||
rev = "rarfile_3_0";
|
||||
sha256 = "07yliz6p1bxzhipnrgz133gl8laic35gl4rqfay7f1vc384ch7sn";
|
||||
};
|
||||
buildInputs = [ pytest nose glibcLocales ];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace rarfile.py \
|
||||
--replace 'UNRAR_TOOL = "unrar"' "UNRAR_TOOL = \"${unrar}/bin/unrar\""
|
||||
'';
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
checkPhase = ''
|
||||
py.test test -k "not test_printdir"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "RAR archive reader for Python";
|
||||
homepage = https://github.com/markokr/rarfile;
|
||||
license = licenses.isc;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user