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