Skip to content

Commit

Permalink
python312Packages.simple-websocket: 1.0.0 -> 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Oct 31, 2024
1 parent 458eab8 commit 3a31930
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions pkgs/development/python-modules/simple-websocket/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,38 @@
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
wheel,
wsproto,
}:

buildPythonPackage rec {
pname = "simple-websocket";
version = "1.0.0";
format = "pyproject";
version = "1.1.0";
pyproject = true;

disabled = pythonOlder "3.11";

src = fetchFromGitHub {
owner = "miguelgrinberg";
repo = "simple-websocket";
rev = "refs/tags/v${version}";
hash = "sha256-5dUZnbjHzH1sQ93CbFdEoW9j2zY4Z+8wNsYfmOrgC8E=";
hash = "sha256-dwL6GUyygNGBXqkkTnsHwFFpa1JAaeWc9ycQNRgTN4I=";
};

nativeBuildInputs = [
setuptools
wheel
];
build-system = [ setuptools ];

propagatedBuildInputs = [ wsproto ];
dependencies = [ wsproto ];

nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "simple_websocket" ];

disabledTests = [
# Tests require network access
"SimpleWebSocketClientTestCase"
];

meta = with lib; {
description = "Simple WebSocket server and client for Python";
homepage = "https://github.com/miguelgrinberg/simple-websocket";
Expand Down

0 comments on commit 3a31930

Please sign in to comment.