2021-03-14 01:51:53 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-15 13:37:33 -04:00
|
|
|
, pythonOlder
|
2021-03-14 01:51:53 +01:00
|
|
|
, pytestCheckHook
|
2021-08-11 08:08:23 +02:00
|
|
|
, python-socks
|
2019-07-03 19:49:56 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-15 13:12:45 +02:00
|
|
|
pname = "websocket-client";
|
2022-01-13 16:59:08 -08:00
|
|
|
version = "1.2.3";
|
2021-06-15 13:37:33 -04:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-07-03 19:49:56 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-06-15 13:37:33 -04:00
|
|
|
inherit pname version;
|
2022-01-13 16:59:08 -08:00
|
|
|
sha256 = "1315816c0acc508997eb3ae03b9d3ff619c9d12d544c9a9b553704b1cc4f6af5";
|
2019-07-03 19:49:56 -07:00
|
|
|
};
|
|
|
|
|
2021-08-11 08:08:23 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-socks
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-03-14 01:51:53 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "websocket" ];
|
|
|
|
|
2019-07-03 19:49:56 -07:00
|
|
|
meta = with lib; {
|
2021-03-14 01:51:53 +01:00
|
|
|
description = "Websocket client for Python";
|
2019-07-03 19:49:56 -07:00
|
|
|
homepage = "https://github.com/websocket-client/websocket-client";
|
2021-08-11 08:08:23 +02:00
|
|
|
changelog = "https://github.com/websocket-client/websocket-client/blob/v${version}/ChangeLog";
|
2021-03-14 01:51:53 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2019-07-03 19:49:56 -07:00
|
|
|
};
|
|
|
|
}
|