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";
|
2021-08-15 17:02:27 +03:00
|
|
|
version = "1.2.1";
|
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;
|
2021-08-15 17:02:27 +03:00
|
|
|
sha256 = "8dfb715d8a992f5712fff8c843adae94e22b22a99b2c5e6b0ec4a1a981cc4e0d";
|
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
|
|
|
};
|
|
|
|
}
|