mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
pythonPackages.telegram: refactor move to python-modules
This commit is contained in:
parent
a36ce69f6c
commit
f54484f527
2 changed files with 22 additions and 9 deletions
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 { };
|
||||
|
||||
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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue