Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 43 lines 841 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 python, 6 pyaes, 7 pycrypto, 8 uvloop, 9 wrapPython, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "mtprotoproxy"; 14 version = "1.1.1"; 15 16 src = fetchFromGitHub { 17 owner = "alexbers"; 18 repo = "mtprotoproxy"; 19 rev = "v${version}"; 20 sha256 = "sha256-tQ6e1Y25V4qAqBvhhKdirSCYzeALfH+PhNtcHTuBurs="; 21 }; 22 23 nativeBuildInputs = [ wrapPython ]; 24 pythonPath = [ 25 pyaes 26 pycrypto 27 uvloop 28 ]; 29 30 installPhase = '' 31 install -Dm755 mtprotoproxy.py $out/bin/mtprotoproxy 32 wrapPythonPrograms 33 ''; 34 35 meta = with lib; { 36 description = "Async MTProto proxy for Telegram"; 37 license = licenses.mit; 38 homepage = "https://github.com/alexbers/mtprotoproxy"; 39 platforms = python.meta.platforms; 40 maintainers = with maintainers; [ abbradar ]; 41 mainProgram = "mtprotoproxy"; 42 }; 43}