pythonPackages.telegram: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 17:34:54 -04:00
parent a36ce69f6c
commit f54484f527
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 22 additions and 9 deletions

View file

@ -0,0 +1,21 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "telegram";
version = "0.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "1495l2ml8mg120wfvqhikqkfczhwwaby40vdmsz8v2l69jps01fl";
};
meta = with stdenv.lib; {
homepage = https://github.com/liluo/telegram;
description = "Telegram APIs";
license = licenses.mit;
};
}

View file

@ -4607,15 +4607,7 @@ in {
pygments-markdown-lexer = callPackage ../development/python-modules/pygments-markdown-lexer { };
telegram = buildPythonPackage rec {
name = "telegram-${version}";
version = "0.0.1";
src = pkgs.fetchurl {
url = "mirror://pypi/t/telegram/${name}.tar.gz";
sha256 = "1495l2ml8mg120wfvqhikqkfczhwwaby40vdmsz8v2l69jps01fl";
};
};
telegram = callPackage ../development/python-modules/telegram { };
python-telegram-bot = callPackage ../development/python-modules/python-telegram-bot { };