nixpkgs/pkgs/servers/mtprotoproxy/default.nix
R. RyanTM 23110eca6b mtprotoproxy: 1.0.6 -> 1.0.7
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/mtprotoproxy/versions
2019-10-23 15:55:51 +02:00

30 lines
786 B
Nix

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