nixpkgs-suyu/pkgs/servers/mtprotoproxy/default.nix

30 lines
771 B
Nix
Raw Normal View History

2019-06-09 10:18:59 +02:00
{ 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 ];
};
}