summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ircrobots/default.nix
blob: 852a05a9db620b15deb7736cf614a9adb7aec012 (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
47
48
49
50
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  anyio,
  asyncio-rlock,
  asyncio-throttle,
  ircstates,
  async-stagger,
  async-timeout,
  unittestCheckHook,
}:

buildPythonPackage rec {
  pname = "ircrobots";
  version = "0.7.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jesopo";
    repo = "ircrobots";
    rev = "v${version}";
    hash = "sha256-slz4AH2Mi21N3aV+OrnoXoQsseS7arW2NuUZARQJsf0=";
  };

  build-system = [ setuptools ];

  pythonRelaxDeps = true;

  propagatedBuildInputs = [
    anyio
    asyncio-rlock
    asyncio-throttle
    ircstates
    async-stagger
    async-timeout
  ];

  nativeCheckInputs = [ unittestCheckHook ];

  pythonImportsCheck = [ "ircrobots" ];

  meta = {
    description = "Asynchronous bare-bones IRC bot framework for python3";
    license = lib.licenses.mit;
    homepage = "https://github.com/jesopo/ircrobots";
    maintainers = with lib.maintainers; [ hexa ];
  };
}