Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
897 B · 46 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, stdenv, buildPythonPackage, fetchFromGitHub, libarchive, glibcLocales, mock, pytestCheckHook}:
buildPythonPackage rec { pname = "libarchive-c"; version = "4.0"; format = "setuptools";
src = fetchFromGitHub { owner = "Changaco"; repo = "python-${pname}"; rev = version; sha256 = "1ar7lj1lpisklq2q07d95yhlbfq25g9g61hcj8whj17mq8vrvml1"; };
LC_ALL="en_US.UTF-8";
postPatch = '' substituteInPlace libarchive/ffi.py --replace \ "find_library('archive')" "'${libarchive.lib}/lib/libarchive${stdenv.hostPlatform.extensions.sharedLibrary}'" '';
pythonImportsCheck = [ "libarchive" ];
nativeCheckInputs = [ glibcLocales mock pytestCheckHook ];
meta = with lib; { homepage = "https://github.com/Changaco/python-libarchive-c"; description = "Python interface to libarchive"; license = licenses.cc0; };
}