2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
40 lines
820 B
Nix
40 lines
820 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, python-socks
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "websocket-client";
|
|
version = "1.6.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Oq0l0xKEJmvPz9H9inQ/YygjBaNkuNCUikO9YGrMZS8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
python-socks
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"websocket"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Websocket client for Python";
|
|
homepage = "https://github.com/websocket-client/websocket-client";
|
|
changelog = "https://github.com/websocket-client/websocket-client/blob/v${version}/ChangeLog";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|