From 24f76a55d26cfa42be7bc498ccaf01f4c2f3d5bd Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 4 Aug 2015 09:10:27 +0300 Subject: [PATCH] pythonPackages.libarchive-c: init at 2.1 --- pkgs/top-level/python-packages.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6fe599eec643..d055bdc872ae 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15259,6 +15259,22 @@ let propagatedBuildInputs = with self; [ pkgs.libarchive ]; }; + libarchive-c = buildPythonPackage rec { + name = "libarchive-c-2.1"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/l/libarchive-c/${name}.tar.gz"; + sha256 = "089lrz6xyrfnk55v35vis6jyqyyl77w093057djyspnd2744wi2n"; + }; + + patchPhase = '' + substituteInPlace libarchive/ffi.py --replace \ + "find_library('archive')" "'${pkgs.libarchive}/lib/libarchive.so'" + ''; + + buildInputs = [ pkgs.libarchive ]; + }; + pybrowserid = buildPythonPackage rec { name = "PyBrowserID-${version}"; version = "0.9.2";