Files
nixpkgs/pkgs/development/python-modules/flask-sock/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
979 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 = {
description = "WebSocket support for Flask";
homepage = "https://github.com/miguelgrinberg/flask-sock/";
changelog = "https://github.com/miguelgrinberg/flask-sock/blob/main/CHANGES.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fmhoeger ];
};
}