@@ -2136,6 +2136,31 @@ in modules // {
21362136 };
21372137 };
21382138
2139+ capstone = buildPythonPackage rec {
2140+ name = "capstone-3.0.4";
2141+ src = pkgs.fetchurl {
2142+ url = "mirror://pypi/c/capstone/${name}.tar.gz";
2143+ sha256 = "945d3b8c3646a1c3914824c416439e2cf2df8969dd722c8979cdcc23b40ad225";
2144+ };
2145+ patches = [
2146+ (pkgs.fetchpatch {
2147+ stripLen = 2;
2148+ url = "https://patch-diff.githubusercontent.com/raw/aquynh/capstone/pull/783/commits/23fe9f36622573c747e2bab6119ff245437bf276.patch";
2149+ sha256 = "0yizqrdlxqxn16873593kdx2vrr7gvvilhgcf9xy6hr0603d3m5r";
2150+ })
2151+ ];
2152+ postPatch = ''
2153+ patchShebangs src/make.sh
2154+ '';
2155+ propagatedBuildInputs = [ ];
2156+ meta = with pkgs.stdenv.lib; {
2157+ homepage = "http://www.capstone-engine.org/";
2158+ license = licenses.bsdOriginal;
2159+ description = "Capstone disassembly engine";
2160+ maintainers = with maintainers; [ bennofs ];
2161+ };
2162+ };
2163+
21392164 cgroup-utils = buildPythonPackage rec {
21402165 version = "0.6";
21412166 name = "cgroup-utils-${version}";