1 { lib, stdenv, fetchFromGitHub, python, pyaes, pycrypto, uvloop, wrapPython }:
3 stdenv.mkDerivation rec {
4 pname = "mtprotoproxy";
7 src = fetchFromGitHub {
11 sha256 = "sha256-tQ6e1Y25V4qAqBvhhKdirSCYzeALfH+PhNtcHTuBurs=";
14 nativeBuildInputs = [ wrapPython ];
15 pythonPath = [ pyaes pycrypto uvloop ];
18 install -Dm755 mtprotoproxy.py $out/bin/mtprotoproxy
23 description = "Async MTProto proxy for Telegram";
24 license = licenses.mit;
25 homepage = "https://github.com/alexbers/mtprotoproxy";
26 platforms = python.meta.platforms;
27 maintainers = with maintainers; [ abbradar ];
28 mainProgram = "mtprotoproxy";