summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pysignalr/default.nix
blob: 1dd2ec3e591245e87f1aaddc4c6a3eed855188b0 (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
51
52
53
{
  aiohttp,
  buildPythonPackage,
  docker,
  fetchFromGitHub,
  lib,
  msgpack,
  orjson,
  poetry-core,
  pytest-asyncio,
  pytestCheckHook,
  requests,
  websockets,
}:

buildPythonPackage rec {
  pname = "pysignalr";
  version = "1.3.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "baking-bad";
    repo = "pysignalr";
    tag = version;
    hash = "sha256-3VZuS5q4b85Kuk2B00AeVpLGO232GN8tlfu6UaGmzjE=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    aiohttp
    msgpack
    orjson
    websockets
  ];

  pythonImportsCheck = [ "pysignalr" ];

  nativeCheckInputs = [
    docker
    pytest-asyncio
    pytestCheckHook
    requests
  ];

  meta = {
    changelog = "https://github.com/baking-bad/pysignalr/blob/${src.tag}/CHANGELOG.md";
    description = "Modern, reliable and async-ready client for SignalR protocol";
    homepage = "https://github.com/baking-bad/pysignalr";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}