2019-09-26 22:48:03 +03:00
|
|
|
{ stdenv, fetchFromGitHub, python, pyaes, pycrypto, uvloop, wrapPython }:
|
2019-06-09 11:18:59 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mtprotoproxy";
|
2020-11-22 07:22:31 +03:00
|
|
|
version = "1.1.0";
|
2019-06-09 11:18:59 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alexbers";
|
|
|
|
repo = "mtprotoproxy";
|
|
|
|
rev = "v${version}";
|
2020-11-22 07:22:31 +03:00
|
|
|
sha256 = "15svvramxzl8q8xzs8g62gg8czdn46fjy6jhs5hqf5p83ycxsygz";
|
2019-06-09 11:18:59 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapPython ];
|
2019-09-26 22:48:03 +03:00
|
|
|
pythonPath = [ pyaes pycrypto uvloop ];
|
2019-06-09 11:18:59 +03:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 mtprotoproxy.py $out/bin/mtprotoproxy
|
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Async MTProto proxy for Telegram";
|
|
|
|
license = licenses.mit;
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/alexbers/mtprotoproxy";
|
2019-06-09 11:18:59 +03:00
|
|
|
platforms = python.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|