2021-03-19 17:17:44 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-28 23:13:55 +00:00
|
|
|
, pythonOlder
|
2021-03-19 17:17:44 +00:00
|
|
|
, pytestCheckHook
|
2021-08-11 14:56:57 +00:00
|
|
|
, python-socks
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "websocket-client";
|
2021-08-11 14:56:57 +00:00
|
|
|
version = "1.2.0";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-11 14:56:57 +00:00
|
|
|
sha256 = "sha256-dmW6bGRZibKLYWcIdKt1PmkpF56fyQVlrOasCQ9ZxVk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-11 14:56:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-socks
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "websocket" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2021-03-19 17:17:44 +00:00
|
|
|
description = "Websocket client for Python";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/websocket-client/websocket-client";
|
2021-08-11 14:56:57 +00:00
|
|
|
changelog = "https://github.com/websocket-client/websocket-client/blob/v${version}/ChangeLog";
|
2021-03-19 17:17:44 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|