pythonPackages.sanic: init at 19.3.1
This commit is contained in:
parent
0ddf3fe7d8
commit
5d930e2dfa
68
pkgs/development/python-modules/sanic/default.nix
Normal file
68
pkgs/development/python-modules/sanic/default.nix
Normal file
@ -0,0 +1,68 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, httptools
|
||||
, aiofiles
|
||||
, websockets
|
||||
, multidict
|
||||
, uvloop
|
||||
, ujson
|
||||
, pytest
|
||||
, gunicorn
|
||||
, pytestcov
|
||||
, aiohttp
|
||||
, beautifulsoup4
|
||||
, pytest-sanic
|
||||
, pytest-sugar
|
||||
, pytest-benchmark
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sanic";
|
||||
version = "19.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ce434eb154872ca64493a6c3a288f11fd10bca0de7be7bf9f1d0d063185e51ec";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
httptools
|
||||
aiofiles
|
||||
websockets
|
||||
multidict
|
||||
uvloop
|
||||
ujson
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
gunicorn
|
||||
pytestcov
|
||||
aiohttp
|
||||
beautifulsoup4
|
||||
pytest-sanic
|
||||
pytest-sugar
|
||||
pytest-benchmark
|
||||
];
|
||||
|
||||
postConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "websockets>=6.0,<7.0" "websockets"
|
||||
'';
|
||||
|
||||
# 10/500 tests ignored due to missing directory and
|
||||
# requiring network access
|
||||
checkPhase = ''
|
||||
pytest --ignore tests/test_blueprints.py \
|
||||
--ignore tests/test_routes.py \
|
||||
--ignore tests/test_worker.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A microframework based on uvloop, httptools, and learnings of flask";
|
||||
homepage = http://github.com/channelcat/sanic/;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
@ -4641,6 +4641,8 @@ in {
|
||||
|
||||
sandboxlib = callPackage ../development/python-modules/sandboxlib { };
|
||||
|
||||
sanic = callPackage ../development/python-modules/sanic { };
|
||||
|
||||
scales = callPackage ../development/python-modules/scales { };
|
||||
|
||||
secp256k1 = callPackage ../development/python-modules/secp256k1 {
|
||||
|
Loading…
Reference in New Issue
Block a user