depot/third_party/nixpkgs/pkgs/development/python-modules/websocket_client/default.nix
Default email 07d6a74cbb Project import generated by Copybara.
GitOrigin-RevId: f5e8bdd07d1afaabf6b37afc5497b1e498b8046f
2021-03-19 18:17:44 +01:00

33 lines
707 B
Nix

{ lib
, backports_ssl_match_hostname
, buildPythonPackage
, fetchPypi
, isPy27
, pytestCheckHook
, six
}:
buildPythonPackage rec {
pname = "websocket_client";
version = "0.58.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Y1CbQdFYrlt/Z+tK0g/su07umUNOc+FANU3D/44JcW8=";
};
propagatedBuildInputs = [
six
] ++ lib.optional isPy27 backports_ssl_match_hostname;
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "websocket" ];
meta = with lib; {
description = "Websocket client for Python";
homepage = "https://github.com/websocket-client/websocket-client";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ fab ];
};
}