python3.pkgs.python-engineio: init at 3.0.0
This commit is contained in:
parent
5afbdde38c
commit
5e591a0087
49
pkgs/development/python-modules/python-engineio/default.nix
Normal file
49
pkgs/development/python-modules/python-engineio/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue