depot/third_party/nixpkgs/pkgs/servers/mtprotoproxy/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
788 B
Nix

{ stdenv, fetchFromGitHub, python, pyaes, pycrypto, uvloop, wrapPython }:
stdenv.mkDerivation rec {
pname = "mtprotoproxy";
version = "1.0.9";
src = fetchFromGitHub {
owner = "alexbers";
repo = "mtprotoproxy";
rev = "v${version}";
sha256 = "16f9hzh4h41qb5962lxx04653ncar83znh872g2qh564b6f922z2";
};
nativeBuildInputs = [ wrapPython ];
pythonPath = [ pyaes pycrypto uvloop ];
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 ];
};
}