2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchgit,
|
|
|
|
pyptlib,
|
|
|
|
twisted,
|
|
|
|
pycrypto,
|
|
|
|
pyyaml,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "obfsproxy";
|
|
|
|
version = "0.2.13";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
2022-03-30 09:31:56 +00:00
|
|
|
url = "https://git.torproject.org/pluggable-transports/obfsproxy.git";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "refs/tags/${pname}-${version}";
|
|
|
|
sha256 = "04ja1cl8xzqnwrd2gi6nlnxbmjri141bzwa5gybvr44d8h3k2nfa";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "version=versioneer.get_version()" "version='${version}'"
|
|
|
|
substituteInPlace setup.py --replace "argparse" ""
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyptlib
|
|
|
|
twisted
|
|
|
|
pycrypto
|
|
|
|
pyyaml
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A pluggable transport proxy";
|
|
|
|
homepage = "https://www.torproject.org/projects/obfsproxy";
|
2021-12-21 02:18:32 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|