2019-09-26 21:48:03 +02:00
|
|
|
{ stdenv, fetchFromGitHub, python, pyaes, pycrypto, uvloop, wrapPython }:
|
2019-06-09 10:18:59 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mtprotoproxy";
|
2020-01-26 09:27:31 +01:00
|
|
|
version = "1.0.9";
|
2019-06-09 10:18:59 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alexbers";
|
|
|
|
repo = "mtprotoproxy";
|
|
|
|
rev = "v${version}";
|
2020-01-26 09:27:31 +01:00
|
|
|
sha256 = "16f9hzh4h41qb5962lxx04653ncar83znh872g2qh564b6f922z2";
|
2019-06-09 10:18:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapPython ];
|
2019-09-26 21:48:03 +02:00
|
|
|
pythonPath = [ pyaes pycrypto uvloop ];
|
2019-06-09 10:18:59 +02: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 03:11:51 +02:00
|
|
|
homepage = "https://github.com/alexbers/mtprotoproxy";
|
2019-06-09 10:18:59 +02:00
|
|
|
platforms = python.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|