Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / simple-websocket / default.nix
blob5af426fb5ba2ca9568e65dfe3307a8e3f00e8aa9
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , setuptools
6 , wheel
7 , wsproto
8 }:
10 buildPythonPackage rec {
11   pname = "simple-websocket";
12   version = "1.0.0";
13   format = "pyproject";
15   src = fetchFromGitHub {
16     owner = "miguelgrinberg";
17     repo = "simple-websocket";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-5dUZnbjHzH1sQ93CbFdEoW9j2zY4Z+8wNsYfmOrgC8E=";
20   };
22   nativeBuildInputs = [
23     setuptools
24     wheel
25   ];
27   propagatedBuildInputs = [
28     wsproto
29   ];
31   nativeCheckInputs = [
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [
36     "simple_websocket"
37   ];
39   meta = with lib; {
40     description = "Simple WebSocket server and client for Python";
41     homepage = "https://github.com/miguelgrinberg/simple-websocket";
42     changelog = "https://github.com/miguelgrinberg/simple-websocket/blob/${version}/CHANGES.md";
43     license = licenses.mit;
44     maintainers = with maintainers; [ fab ];
45   };