depot/third_party/nixpkgs/pkgs/servers/mtprotoproxy/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

30 lines
819 B
Nix

{ lib, stdenv, fetchFromGitHub, python, pyaes, pycrypto, uvloop, wrapPython }:
stdenv.mkDerivation rec {
pname = "mtprotoproxy";
version = "1.1.1";
src = fetchFromGitHub {
owner = "alexbers";
repo = "mtprotoproxy";
rev = "v${version}";
sha256 = "sha256-tQ6e1Y25V4qAqBvhhKdirSCYzeALfH+PhNtcHTuBurs=";
};
nativeBuildInputs = [ wrapPython ];
pythonPath = [ pyaes pycrypto uvloop ];
installPhase = ''
install -Dm755 mtprotoproxy.py $out/bin/mtprotoproxy
wrapPythonPrograms
'';
meta = with lib; {
description = "Async MTProto proxy for Telegram";
license = licenses.mit;
homepage = "https://github.com/alexbers/mtprotoproxy";
platforms = python.meta.platforms;
maintainers = with maintainers; [ abbradar ];
mainProgram = "mtprotoproxy";
};
}