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