pythonPackages.libarchive-c 2.1 -> 2.5

This commit is contained in:
Frederik Rietdijk 2016-09-20 09:40:50 +02:00
parent ed413bb4d5
commit 6920e49b89

View file

@ -26332,19 +26332,25 @@ in modules // {
};
libarchive-c = buildPythonPackage rec {
name = "libarchive-c-2.1";
name = "libarchive-c-${version}";
version = "2.5";
src = pkgs.fetchurl {
url = "mirror://pypi/l/libarchive-c/${name}.tar.gz";
sha256 = "089lrz6xyrfnk55v35vis6jyqyyl77w093057djyspnd2744wi2n";
sha256 = "98660daa2501d2da51ab6f39893dc24e88916e72b2d80c205641faa5bce66859";
};
patchPhase = ''
LC_ALL="en_US.UTF-8";
postPatch = ''
substituteInPlace libarchive/ffi.py --replace \
"find_library('archive')" "'${pkgs.libarchive}/lib/libarchive.so'"
"find_library('archive')" "'${pkgs.libarchive.lib}/lib/libarchive.so'"
'';
checkPhase = ''
py.test tests -k 'not test_check_archiveentry_with_unicode_entries_and_name_zip'
'';
buildInputs = [ pkgs.libarchive ];
buildInputs = with self; [ pytest pkgs.glibcLocales ];
};
pybrowserid = buildPythonPackage rec {