mtprotoproxy: init at 1.0.5

This commit is contained in:
Nikolay Amiantov 2019-06-09 11:18:59 +03:00
parent 9d11c30cf9
commit 2a69ddb69b
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ stdenv, fetchFromGitHub, python, pyaes, pycrypto, wrapPython }:
stdenv.mkDerivation rec {
pname = "mtprotoproxy";
version = "1.0.5";
src = fetchFromGitHub {
owner = "alexbers";
repo = "mtprotoproxy";
rev = "v${version}";
sha256 = "11jaz01cagmqadyxkks7dx41ggg6pp2l1ia9npqyrl2xhcxm5b0x";
};
nativeBuildInputs = [ wrapPython ];
pythonPath = [ pyaes pycrypto ];
installPhase = ''
install -Dm755 mtprotoproxy.py $out/bin/mtprotoproxy
wrapPythonPrograms
'';
meta = with stdenv.lib; {
description = "Async MTProto proxy for Telegram";
license = licenses.mit;
homepage = https://github.com/alexbers/mtprotoproxy;
platforms = python.meta.platforms;
maintainers = with maintainers; [ abbradar ];
};
}

View File

@ -14301,6 +14301,8 @@ in
mpdscribble = callPackage ../tools/misc/mpdscribble { }; mpdscribble = callPackage ../tools/misc/mpdscribble { };
mtprotoproxy = python3.pkgs.callPackage ../servers/mtprotoproxy { };
micro-httpd = callPackage ../servers/http/micro-httpd { }; micro-httpd = callPackage ../servers/http/micro-httpd { };
miniHttpd = callPackage ../servers/http/mini-httpd {}; miniHttpd = callPackage ../servers/http/mini-httpd {};