mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
pythonPackages.libarchive-c 2.1 -> 2.5
This commit is contained in:
parent
ed413bb4d5
commit
6920e49b89
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user