nixpkgs/pkgs/by-name/op/opsdroid/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

79 lines
1.5 KiB
Nix

{
lib,
fetchFromGitHub,
python3Packages,
}:
python3Packages.buildPythonPackage rec {
pname = "opsdroid";
version = "0.30.0";
pyproject = true;
src = fetchFromGitHub {
owner = "opsdroid";
repo = "opsdroid";
rev = "refs/tags/v${version}";
hash = "sha256-7H44wdhJD4Z6OP1sUmSGlepuvx+LlwKLq7iR8cwqR24=";
};
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
aiohttp
aiohttp-middlewares
aioredis
aiosqlite
appdirs
arrow
babel
bitstring
bleach
# botbuilder-core, connector for teams
certifi
click
# dialogflow, connector for Dialogflow
dnspython
emoji
get-video-properties
ibm-watson
(matrix-nio.override { withOlm = true; })
mattermostdriver
motor
multidict
nbconvert
nbformat
opsdroid-get-image-size
parse
puremagic
pycron
python-olm
pyyaml
regex
rich
slack-sdk
tailer
voluptuous
watchgod
webexteamssdk
wrapt
];
passthru.python = python3Packages.python;
# Tests are not included in releases
doCheck = false;
meta = with lib; {
description = "Open source chat-ops bot framework";
homepage = "https://opsdroid.dev";
changelog = "https://github.com/opsdroid/opsdroid/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [
globin
willibutz
];
platforms = platforms.unix;
mainProgram = "opsdroid";
};
}