mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
Merge pull request #268194 from fmhoeger/flask-sock
python311Packages.flask-sock: init at 0.7.0
This commit is contained in:
commit
13b2a2f056
@ -6026,6 +6026,12 @@
|
||||
githubId = 74379;
|
||||
name = "Florian Pester";
|
||||
};
|
||||
fmhoeger = {
|
||||
email = "fmhoeger@mirsem.org";
|
||||
name = "fmhoeger";
|
||||
github = "fmhoeger";
|
||||
githubId = 59626853;
|
||||
};
|
||||
fmoda3 = {
|
||||
email = "fmoda3@mac.com";
|
||||
github = "fmoda3";
|
||||
|
51
pkgs/development/python-modules/flask-sock/default.nix
Normal file
51
pkgs/development/python-modules/flask-sock/default.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ 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
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"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 ];
|
||||
};
|
||||
}
|
@ -4077,6 +4077,8 @@ self: super: with self; {
|
||||
|
||||
flask-silk = callPackage ../development/python-modules/flask-silk { };
|
||||
|
||||
flask-sock = callPackage ../development/python-modules/flask-sock { };
|
||||
|
||||
flask-socketio = callPackage ../development/python-modules/flask-socketio { };
|
||||
|
||||
flask-sockets = callPackage ../development/python-modules/flask-sockets { };
|
||||
|
Loading…
Reference in New Issue
Block a user