nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 gevent,
6 gevent-websocket,
7 versiontools,
8}:
9
10buildPythonPackage rec {
11 pname = "gevent-socketio";
12 version = "0.3.6";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-UzlKuT+9hNnbuyvvhTSfalA7/FPYapvoZTJQ8aBBKv8=";
18 };
19
20 nativeBuildInputs = [ versiontools ];
21
22 buildInputs = [ gevent-websocket ];
23
24 propagatedBuildInputs = [ gevent ];
25
26 # Tests are not ported to Python 3
27 doCheck = false;
28
29 pythonImportsCheck = [ "socketio" ];
30
31 meta = {
32 description = "SocketIO server based on the Gevent pywsgi server";
33 homepage = "https://github.com/abourget/gevent-socketio";
34 license = lib.licenses.bsd0;
35 maintainers = [ ];
36 };
37}