python3Packages.semaphore-bot: init at 0.16.0

This commit is contained in:
Jonas Heinrich 2023-07-08 22:07:46 +02:00
parent 4429be1806
commit d70459bd36
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchPypi
, python-dateutil
, attrs
, anyio
}:
buildPythonPackage rec {
pname = "semaphore-bot";
version = "0.16.0";
format = "setuptools";
src = fetchPypi {
inherit version pname;
hash = "sha256-EOUvzW4a8CgyQSxb2fXnIWfOYs5Xe0v794vDIruSHmI=";
};
postPatch = ''
substituteInPlace setup.py --replace "anyio>=3.5.0,<=3.6.2" "anyio"
'';
propagatedBuildInputs = [
anyio
attrs
python-dateutil
];
# Upstream has no tests
doCheck = false;
pythonImportsCheck = [ "semaphore" ];
meta = with lib; {
description = "Simple rule-based bot library for Signal Private Messenger";
homepage = "https://github.com/lwesterhof/semaphore";
license = with licenses; [ agpl3Plus ];
maintainers = with maintainers; [ onny ];
};
}

View File

@ -11231,6 +11231,8 @@ self: super: with self; {
semantic-version = callPackage ../development/python-modules/semantic-version { };
semaphore-bot = callPackage ../development/python-modules/semaphore-bot { };
semver = callPackage ../development/python-modules/semver { };
send2trash = callPackage ../development/python-modules/send2trash { };