1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 requests-mock,
7 oauthlib,
8 requests-oauthlib,
9 requests,
10 pyaml,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "pleroma-bot";
16 version = "0.8.6";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "robertoszek";
23 repo = "pleroma-bot";
24 rev = version;
25 hash = "sha256-vJxblpf3NMSyYMHeWG7vHP5AeluTtMtVxOsHgvGDHeA=";
26 };
27
28 propagatedBuildInputs = [
29 pyaml
30 requests
31 requests-oauthlib
32 oauthlib
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 requests-mock
38 ];
39
40 pythonImportsCheck = [ "pleroma_bot" ];
41
42 meta = with lib; {
43 description = "Bot for mirroring one or multiple Twitter accounts in Pleroma/Mastodon";
44 mainProgram = "pleroma-bot";
45 homepage = "https://robertoszek.github.io/pleroma-bot/";
46 license = licenses.mit;
47 maintainers = with maintainers; [ robertoszek ];
48 };
49}