depot/third_party/nixpkgs/pkgs/development/python-modules/websocket-client/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

45 lines
873 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, python-socks
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "websocket-client";
version = "1.6.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-szJAGbPChXIIbEoxn5HR3NRObhHNNAIyl4xoSnZQ0N8=";
};
nativeBuildInputs = [
setuptools
];
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 ];
};
}