1{ 2 lib, 3 buildPythonPackage, 4 fetchgit, 5 pyptlib, 6 twisted, 7 pycrypto, 8 pyyaml, 9}: 10 11buildPythonPackage rec { 12 pname = "obfsproxy"; 13 version = "0.2.13"; 14 format = "setuptools"; 15 16 src = fetchgit { 17 url = "https://git.torproject.org/pluggable-transports/obfsproxy.git"; 18 rev = "refs/tags/${pname}-${version}"; 19 sha256 = "04ja1cl8xzqnwrd2gi6nlnxbmjri141bzwa5gybvr44d8h3k2nfa"; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py --replace "version=versioneer.get_version()" "version='${version}'" 24 substituteInPlace setup.py --replace "argparse" "" 25 ''; 26 27 propagatedBuildInputs = [ 28 pyptlib 29 twisted 30 pycrypto 31 pyyaml 32 ]; 33 34 # No tests in archive 35 doCheck = false; 36 37 meta = with lib; { 38 description = "Pluggable transport proxy"; 39 homepage = "https://www.torproject.org/projects/obfsproxy"; 40 maintainers = with maintainers; [ thoughtpolice ]; 41 }; 42}