pleroma-bot: init at 0.8.6

added pythonImportsCheck

Update pkgs/development/python-modules/pleroma-bot/default.nix

Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>

Update pkgs/top-level/all-packages.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

changed fetcher and added checkInput tests

Update pkgs/development/python-modules/pleroma-bot/default.nix

Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>

change to pytestCheckHook

Update pkgs/development/python-modules/pleroma-bot/default.nix

Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>

formatting with nixpkgs-fmt

attribute ordering

use version

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
robertoszek 2021-02-28 17:41:09 +01:00
parent d4cced08b9
commit 14b60caa6e
No known key found for this signature in database
GPG Key ID: 66340A2E8C06B0C5
2 changed files with 36 additions and 0 deletions

@ -0,0 +1,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 ];
};
}

@ -24041,6 +24041,8 @@ in
stdenv = stdenv_32bit;
};
pleroma-bot = python3Packages.callPackage ../development/python-modules/pleroma-bot { };
polybar = callPackage ../applications/misc/polybar { };
polybarFull = callPackage ../applications/misc/polybar {