2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
requests-mock,
|
|
|
|
oauthlib,
|
|
|
|
requests-oauthlib,
|
|
|
|
requests,
|
|
|
|
pyaml,
|
|
|
|
pythonOlder,
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pleroma-bot";
|
|
|
|
version = "0.8.6";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "robertoszek";
|
2022-04-27 09:35:20 +00:00
|
|
|
repo = pname;
|
2021-03-09 03:18:52 +00:00
|
|
|
rev = version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-vJxblpf3NMSyYMHeWG7vHP5AeluTtMtVxOsHgvGDHeA=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyaml
|
|
|
|
requests
|
|
|
|
requests-oauthlib
|
|
|
|
oauthlib
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pleroma_bot" ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bot for mirroring one or multiple Twitter accounts in Pleroma/Mastodon";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pleroma-bot";
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://robertoszek.github.io/pleroma-bot/";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ robertoszek ];
|
|
|
|
};
|
|
|
|
}
|