2019-09-26 20:48:03 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python, pyaes, pycrypto, uvloop, wrapPython }:
|
2019-06-09 09:18:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mtprotoproxy";
|
2019-10-22 19:24:37 +01:00
|
|
|
version = "1.0.7";
|
2019-06-09 09:18:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alexbers";
|
|
|
|
repo = "mtprotoproxy";
|
|
|
|
rev = "v${version}";
|
2019-10-22 19:24:37 +01:00
|
|
|
sha256 = "1j8bxwcq968h5sd58g03yc4zjqkhkjdn0f04vr826hhsdxy853r4";
|
2019-06-09 09:18:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapPython ];
|
2019-09-26 20:48:03 +01:00
|
|
|
pythonPath = [ pyaes pycrypto uvloop ];
|
2019-06-09 09:18:59 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|