mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
pythonPackages.libarchive-c 2.1 -> 2.5
(cherry picked from commit 6920e49b89)
This commit is contained in:
committed by
Eelco Dolstra
parent
b7316d975d
commit
bdd7ea353e
@@ -26154,19 +26154,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 {
|
||||
|
||||
Reference in New Issue
Block a user