summary refs log tree commit diff
path: root/pkgs/development/python-modules/pleroma-bot/default.nix
blob: 1dca45eca762b79c6b3d0cfeac649d654bbc9346 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, requests-mock
, oauthlib
, requests_oauthlib
, requests
, pyaml
}:

buildPythonPackage rec {
  pname = "pleroma-bot";
  version = "0.8.6";

  src = fetchFromGitHub {
    owner = "robertoszek";
    repo = "pleroma-bot";
    rev = version;
    sha256 = "1q0xhgqq41zbqiawpd4kbdx41zhwxxp5ipn1c2rc8d7pjyb5p75w";
  };

  propagatedBuildInputs = [ pyaml requests requests_oauthlib oauthlib ];
  checkInputs = [ pytestCheckHook requests-mock ];

  pythonImportsCheck = [ "pleroma_bot" ];

  meta = with lib; {
    homepage = "https://robertoszek.github.io/pleroma-bot/";
    description = "Bot for mirroring one or multiple Twitter accounts in Pleroma/Mastodon";
    license = licenses.mit;
    maintainers = with maintainers; [ robertoszek ];
  };
}