pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / simple-websocket / default.nix
bloba7937b59f6c1e4e0573583955df7cf064b521f03
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   setuptools,
7   wheel,
8   wsproto,
9 }:
11 buildPythonPackage rec {
12   pname = "simple-websocket";
13   version = "1.0.0";
14   format = "pyproject";
16   src = fetchFromGitHub {
17     owner = "miguelgrinberg";
18     repo = "simple-websocket";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-5dUZnbjHzH1sQ93CbFdEoW9j2zY4Z+8wNsYfmOrgC8E=";
21   };
23   nativeBuildInputs = [
24     setuptools
25     wheel
26   ];
28   propagatedBuildInputs = [ wsproto ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   pythonImportsCheck = [ "simple_websocket" ];
34   meta = with lib; {
35     description = "Simple WebSocket server and client for Python";
36     homepage = "https://github.com/miguelgrinberg/simple-websocket";
37     changelog = "https://github.com/miguelgrinberg/simple-websocket/blob/${version}/CHANGES.md";
38     license = licenses.mit;
39     maintainers = with maintainers; [ fab ];
40   };