Merge branch 'master' of github.com:NixOS/nixpkgs into staging-next

This commit is contained in:
Jonathan Ringer
2019-12-30 10:14:18 -08:00
45 changed files with 806 additions and 180 deletions

View File

@@ -9,11 +9,13 @@
, pyyaml
, requests
, ujson
, python-multipart
, pytest
, python
, uvicorn
, isPy27
, darwin
, databases
, aiosqlite
}:
buildPythonPackage rec {
@@ -35,13 +37,17 @@ buildPythonPackage rec {
requests
ujson
uvicorn
python-multipart
databases
] ++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.ApplicationServices ];
checkInputs = [
pytest
aiosqlite
];
checkPhase = ''
${python.interpreter} -c """
from starlette.applications import Starlette
app = Starlette(debug=True)
"""
pytest --ignore=tests/test_graphql.py
'';
meta = with lib; {