mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
23110eca6b
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
30 lines
786 B
Nix
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 ];
|
|
};
|
|
}
|