summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/socketio-client/default.nix
blob: e6c06494f693a21f5deb7cdca09f7f54782d89e0 (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
{
  lib,
  buildPythonPackage,
  requests,
  six,
  websocket-client,
  fetchFromGitHub,
}:

buildPythonPackage rec {
  pname = "socketio-client";
  version = "0.7.2";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "invisibleroads";
    repo = "socketio-client";
    rev = version;
    hash = "sha256-71sjiGJDDYElPGUNCH1HaVdvgMt8KeD/kXVDpF615ho=";
  };

  propagatedBuildInputs = [
    six
    websocket-client
    requests
  ];

  # Perform networking tests.
  doCheck = false;

  pythonImportsCheck = [ "socketIO_client" ];

  meta = {
    description = "Socket.io client library for protocol 1.x";
    homepage = "https://github.com/invisibleroads/socketIO-client";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ raitobezarius ];
  };
}