Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 47 lines 869 B view raw
1{ lib 2, buildPythonPackage 3, coverage 4, fetchFromGitHub 5, flask 6, pytestCheckHook 7, python-socketio 8, pythonOlder 9, redis 10}: 11 12buildPythonPackage rec { 13 pname = "Flask-SocketIO"; 14 version = "5.3.3"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "miguelgrinberg"; 20 repo = "Flask-SocketIO"; 21 rev = "v${version}"; 22 hash = "sha256-oqy6tSk569QaSkeNsyXuaD6uUB3yuEFg9Jwh5rneyOE="; 23 }; 24 25 propagatedBuildInputs = [ 26 flask 27 python-socketio 28 ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 redis 33 ]; 34 35 pytestFlagsArray = [ 36 "test_socketio.py" 37 ]; 38 39 pythonImportsCheck = [ "flask_socketio" ]; 40 41 meta = with lib; { 42 description = "Socket.IO integration for Flask applications"; 43 homepage = "https://github.com/miguelgrinberg/Flask-SocketIO/"; 44 license = licenses.mit; 45 maintainers = [ maintainers.mic92 ]; 46 }; 47}