depot/third_party/nixpkgs/pkgs/development/python-modules/telethon-session-sqlalchemy/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
996 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPy3k,
sqlalchemy,
}:
buildPythonPackage rec {
pname = "telethon-session-sqlalchemy";
version = "0.2.16";
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "f847c57302a102eb88e29ed95b8f4efa69582db2966fd806c21376b9a66ad4a8";
};
propagatedBuildInputs = [ sqlalchemy ];
# No tests available
doCheck = false;
meta = with lib; {
homepage = "https://github.com/tulir/telethon-session-sqlalchemy";
description = "SQLAlchemy backend for Telethon session storage";
license = licenses.mit;
maintainers = with maintainers; [ nyanloutre ];
# Package requires SQLAlchemy <2
# https://github.com/tulir/telethon-session-sqlalchemy/blob/d498503ddde332e190bfa47e70f0bfa59fe6b5ef/setup.py#L17
# Repo is archived and so this is unlikely to change unless someone forks
# and takes over development
broken = versionAtLeast sqlalchemy.version "2";
};
}