summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/semaphore-bot/default.nix
blob: 53b4b92c5e48a0c3e1d65babd4c387f02ca617bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  python-dateutil,
  attrs,
  anyio,
}:

buildPythonPackage rec {
  pname = "semaphore-bot";
  version = "0.17.0";
  pyproject = true;

  src = fetchPypi {
    inherit version pname;
    hash = "sha256-3zb6+HdOB6+YrVRcmIHsokFKUOlFmKCoVNllvM+aOXQ=";
  };

  pythonRelaxDeps = [
    "anyio"
    "attrs"
    "python_dateutil"
  ];

  build-system = [ setuptools ];

  dependencies = [
    anyio
    attrs
    python-dateutil
  ];

  # Upstream has no tests
  doCheck = false;

  pythonImportsCheck = [ "semaphore" ];

  meta = {
    description = "Simple rule-based bot library for Signal Private Messenger";
    homepage = "https://github.com/lwesterhof/semaphore";
    license = with lib.licenses; [ agpl3Plus ];
    maintainers = with lib.maintainers; [ onny ];
  };
}