1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
38 lines
737 B
Nix
38 lines
737 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
gevent,
|
|
gevent-websocket,
|
|
versiontools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gevent-socketio";
|
|
version = "0.3.6";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-UzlKuT+9hNnbuyvvhTSfalA7/FPYapvoZTJQ8aBBKv8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ versiontools ];
|
|
|
|
buildInputs = [ gevent-websocket ];
|
|
|
|
propagatedBuildInputs = [ gevent ];
|
|
|
|
# Tests are not ported to Python 3
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "socketio" ];
|
|
|
|
meta = {
|
|
description = "SocketIO server based on the Gevent pywsgi server";
|
|
homepage = "https://github.com/abourget/gevent-socketio";
|
|
license = lib.licenses.bsd0;
|
|
maintainers = [ ];
|
|
};
|
|
}
|