python3.pkgs.python-engineio: init at 3.0.0

This commit is contained in:
Jörg Thalheim 2018-12-01 10:50:54 +00:00
parent 5afbdde38c
commit 5e591a0087
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, six
, eventlet
, mock
, iana-etc
, libredirect
, aiohttp
, tornado
}:
buildPythonPackage rec {
pname = "python-engineio";
version = "3.0.0";
src = fetchFromGitHub {
owner = "miguelgrinberg";
repo = "python-engineio";
rev = "v${version}";
sha256 = "1v510fhn0li808ar2cmwh5nijacy5x60q9x4gm0b34j6mkmc59ph";
};
propagatedBuildInputs = [
six
];
checkInputs = [
eventlet
mock
aiohttp
tornado
];
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
preCheck = stdenv.lib.optionalString stdenv.isLinux ''
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols \
LD_PRELOAD=${libredirect}/lib/libredirect.so
'';
postCheck = "unset NIX_REDIRECTS LD_PRELOAD";
meta = with stdenv.lib; {
description = "Engine.IO server";
homepage = http://github.com/miguelgrinberg/python-engineio/;
license = licenses.mit;
maintainers = [ maintainers.mic92 ];
};
}

View file

@ -633,6 +633,8 @@ in {
python-binance = callPackage ../development/python-modules/python-binance { };
python-engineio = callPackage ../development/python-modules/python-engineio { };
python-hosts = callPackage ../development/python-modules/python-hosts { };
python-lz4 = callPackage ../development/python-modules/python-lz4 { };