python3Packages.gevent-socketio: add pythonImportsCheck

authored by Fabian Affolter and committed by Martin Weinelt 2240750e 4169343e

+27 -8
+27 -8
pkgs/development/python-modules/gevent-socketio/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 - , versiontools 5 , gevent-websocket 6 , mock 7 - , pytest 8 - , gevent 9 }: 10 11 buildPythonPackage rec { 12 pname = "gevent-socketio"; 13 version = "0.3.6"; 14 15 src = fetchPypi { 16 inherit pname version; 17 - sha256 = "1zra86hg2l1jcpl9nsnqagy3nl3akws8bvrbpgdxk15x7ywllfak"; 18 }; 19 20 - buildInputs = [ versiontools gevent-websocket mock pytest ]; 21 - propagatedBuildInputs = [ gevent ]; 22 23 meta = with lib; { 24 homepage = "https://github.com/abourget/gevent-socketio"; 25 - description = "SocketIO server based on the Gevent pywsgi server, a Python network library"; 26 license = licenses.bsd0; 27 }; 28 - 29 }
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , gevent 5 , gevent-websocket 6 , mock 7 + , versiontools 8 + , pythonOlder 9 }: 10 11 buildPythonPackage rec { 12 pname = "gevent-socketio"; 13 version = "0.3.6"; 14 + format = "setuptools"; 15 + 16 + disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 + hash = "sha256-UzlKuT+9hNnbuyvvhTSfalA7/FPYapvoZTJQ8aBBKv8="; 21 }; 22 23 + nativeBuildInputs = [ 24 + versiontools 25 + ]; 26 + 27 + buildInputs = [ 28 + gevent-websocket 29 + ]; 30 + 31 + propagatedBuildInputs = [ 32 + gevent 33 + ]; 34 + 35 + # Tests are not ported to Python 3 36 + doCheck = false; 37 + 38 + pythonImportsCheck = [ 39 + "socketio" 40 + ]; 41 42 meta = with lib; { 43 + description = "SocketIO server based on the Gevent pywsgi server"; 44 homepage = "https://github.com/abourget/gevent-socketio"; 45 license = licenses.bsd0; 46 + maintainers = with maintainers; [ ]; 47 }; 48 }