1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, requests-mock 6, oauthlib 7, requests_oauthlib 8, requests 9, pyaml 10}: 11 12buildPythonPackage rec { 13 pname = "pleroma-bot"; 14 version = "0.8.6"; 15 16 src = fetchFromGitHub { 17 owner = "robertoszek"; 18 repo = "pleroma-bot"; 19 rev = version; 20 sha256 = "1q0xhgqq41zbqiawpd4kbdx41zhwxxp5ipn1c2rc8d7pjyb5p75w"; 21 }; 22 23 propagatedBuildInputs = [ pyaml requests requests_oauthlib oauthlib ]; 24 checkInputs = [ pytestCheckHook requests-mock ]; 25 26 pythonImportsCheck = [ "pleroma_bot" ]; 27 28 meta = with lib; { 29 homepage = "https://robertoszek.github.io/pleroma-bot/"; 30 description = "Bot for mirroring one or multiple Twitter accounts in Pleroma/Mastodon"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ robertoszek ]; 33 }; 34}