diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c4dfd9855fbb..08ecdda816e9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 {