30 lines
530 B
Nix
30 lines
530 B
Nix
{
|
|
lib,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "danbooru_img_bot";
|
|
version = "0.1.0";
|
|
format = "pyproject";
|
|
|
|
src = lib.cleanSource ./.;
|
|
|
|
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
build-system = with python3.pkgs; [
|
|
setuptools
|
|
setuptools_scm
|
|
];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
python-telegram-bot
|
|
aiohttp
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://git.ny4.dev/nyancat/danbooru_img_bot";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "danbooru_img_bot";
|
|
};
|
|
}
|