1{ lib
2, buildPythonPackage
3, fetchPypi
4, python-dateutil
5, attrs
6, anyio
7}:
8
9buildPythonPackage rec {
10 pname = "semaphore-bot";
11 version = "0.16.0";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit version pname;
16 hash = "sha256-EOUvzW4a8CgyQSxb2fXnIWfOYs5Xe0v794vDIruSHmI=";
17 };
18
19 postPatch = ''
20 substituteInPlace setup.py --replace "anyio>=3.5.0,<=3.6.2" "anyio"
21 '';
22
23 propagatedBuildInputs = [
24 anyio
25 attrs
26 python-dateutil
27 ];
28
29 # Upstream has no tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "semaphore" ];
33
34 meta = with lib; {
35 description = "Simple rule-based bot library for Signal Private Messenger";
36 homepage = "https://github.com/lwesterhof/semaphore";
37 license = with licenses; [ agpl3Plus ];
38 maintainers = with maintainers; [ onny ];
39 };
40}