Merge pull request #255732 from fabaff/simple-websocket

python311Packages.simple-websocket: init at 0.9.0
This commit is contained in:
Fabian Affolter 2023-09-18 10:21:23 +02:00 committed by GitHub
commit 0d3835e09a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, setuptools
, wheel
, wsproto
}:
buildPythonPackage rec {
pname = "simple-websocket";
version = "0.9.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "miguelgrinberg";
repo = "simple-websocket";
rev = "refs/tags/v${version}";
hash = "sha256-pGPHS3MbDZgXBOtsZ87ULlkGdHHfaOSDLTNN4l5wKhE=";
};
nativeBuildInputs = [
setuptools
wheel
];
nativeCheckInputs = [
pytestCheckHook
wsproto
];
pythonImportsCheck = [
"simple_websocket"
];
meta = with lib; {
description = "Simple WebSocket server and client for Python";
homepage = "https://github.com/miguelgrinberg/simple-websocket";
changelog = "https://github.com/miguelgrinberg/simple-websocket/blob/${version}/CHANGES.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -11894,6 +11894,8 @@ self: super: with self; {
simple-salesforce = callPackage ../development/python-modules/simple-salesforce { };
simple-websocket = callPackage ../development/python-modules/simple-websocket { };
simple-websocket-server = callPackage ../development/python-modules/simple-websocket-server { };
simplisafe-python = callPackage ../development/python-modules/simplisafe-python { };