Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
981 B
Nix
47 lines
981 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
flask,
|
|
setuptools,
|
|
simple-websocket,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-sock";
|
|
version = "0.7.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miguelgrinberg";
|
|
repo = "flask-sock";
|
|
rev = "v${version}";
|
|
hash = "sha256-GKfOVdeLPag2IKGCWrMjQp4NTL1/9GiyLhXhf9jQKhQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
simple-websocket
|
|
];
|
|
|
|
enabledTestPaths = [ "tests/test_flask_sock.py" ];
|
|
|
|
pythonImportsCheck = [ "flask_sock" ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
description = "WebSocket support for Flask";
|
|
homepage = "https://github.com/miguelgrinberg/flask-sock/";
|
|
changelog = "https://github.com/miguelgrinberg/flask-sock/blob/main/CHANGES.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fmhoeger ];
|
|
};
|
|
}
|