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