nixpkgs/pkgs/development/python-modules/socketio-client/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

40 lines
761 B
Nix

{ lib
, buildPythonPackage
, requests
, six
, websocket-client
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "socketio-client";
version = "0.7.2";
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 = with lib; {
description = "A socket.io client library for protocol 1.x";
homepage = "https://github.com/invisibleroads/socketIO-client";
license = licenses.mit;
maintainers = with maintainers; [ raitobezarius ];
};
}