nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 aiohttp,
3 buildPythonPackage,
4 docker,
5 fetchFromGitHub,
6 lib,
7 msgpack,
8 orjson,
9 poetry-core,
10 pytest-asyncio,
11 pytestCheckHook,
12 requests,
13 websockets,
14}:
15
16buildPythonPackage rec {
17 pname = "pysignalr";
18 version = "1.3.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "baking-bad";
23 repo = "pysignalr";
24 tag = version;
25 hash = "sha256-3VZuS5q4b85Kuk2B00AeVpLGO232GN8tlfu6UaGmzjE=";
26 };
27
28 build-system = [ poetry-core ];
29
30 dependencies = [
31 aiohttp
32 msgpack
33 orjson
34 websockets
35 ];
36
37 pythonRelaxDeps = [ "websockets" ];
38
39 pythonImportsCheck = [ "pysignalr" ];
40
41 nativeCheckInputs = [
42 docker
43 pytest-asyncio
44 pytestCheckHook
45 requests
46 ];
47
48 meta = {
49 changelog = "https://github.com/baking-bad/pysignalr/blob/${src.tag}/CHANGELOG.md";
50 description = "Modern, reliable and async-ready client for SignalR protocol";
51 homepage = "https://github.com/baking-bad/pysignalr";
52 license = lib.licenses.mit;
53 maintainers = with lib.maintainers; [ dotlambda ];
54 };
55}