pythonPackages.telegram: refactor move to python-modules
This commit is contained in:
parent
a36ce69f6c
commit
f54484f527
21
pkgs/development/python-modules/telegram/default.nix
Normal file
21
pkgs/development/python-modules/telegram/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -4607,15 +4607,7 @@ in {
|
|||||||
|
|
||||||
pygments-markdown-lexer = callPackage ../development/python-modules/pygments-markdown-lexer { };
|
pygments-markdown-lexer = callPackage ../development/python-modules/pygments-markdown-lexer { };
|
||||||
|
|
||||||
telegram = buildPythonPackage rec {
|
telegram = callPackage ../development/python-modules/telegram { };
|
||||||
name = "telegram-${version}";
|
|
||||||
version = "0.0.1";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/t/telegram/${name}.tar.gz";
|
|
||||||
sha256 = "1495l2ml8mg120wfvqhikqkfczhwwaby40vdmsz8v2l69jps01fl";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
python-telegram-bot = callPackage ../development/python-modules/python-telegram-bot { };
|
python-telegram-bot = callPackage ../development/python-modules/python-telegram-bot { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user