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