mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
python3Packages.starlette: 0.13.8 -> 0.14.2
- ujson was dropped in https://github.com/encode/starlette/pull/1047 - test_debug_html was fixed in https://github.com/encode/starlette/pull/1132
This commit is contained in:
parent
92b94d13c3
commit
f899f3afdf
1 changed files with 10 additions and 6 deletions
|
@ -10,7 +10,6 @@
|
||||||
, python-multipart
|
, python-multipart
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, requests
|
, requests
|
||||||
, ujson
|
|
||||||
, aiosqlite
|
, aiosqlite
|
||||||
, databases
|
, databases
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
@ -21,16 +20,21 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "starlette";
|
pname = "starlette";
|
||||||
version = "0.13.8";
|
version = "0.14.2";
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "encode";
|
owner = "encode";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "11i0yd8cqwscixajl734g11vf8pghki11c81chzfh8ifmj6mf9jk";
|
sha256 = "0fz28czvwiww693ig9vwdja59xxs7m0yp1df32ms1hzr99666bia";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# remove coverage arguments to pytest
|
||||||
|
sed -i '/--cov/d' setup.cfg
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiofiles
|
aiofiles
|
||||||
graphene
|
graphene
|
||||||
|
@ -39,7 +43,6 @@ buildPythonPackage rec {
|
||||||
python-multipart
|
python-multipart
|
||||||
pyyaml
|
pyyaml
|
||||||
requests
|
requests
|
||||||
ujson
|
|
||||||
] ++ lib.optional stdenv.isDarwin [ ApplicationServices ];
|
] ++ lib.optional stdenv.isDarwin [ ApplicationServices ];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
@ -50,9 +53,10 @@ buildPythonPackage rec {
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# fails to import graphql, but integrated graphql support is about to
|
||||||
|
# be removed in 0.15, see https://github.com/encode/starlette/pull/1135.
|
||||||
disabledTestPaths = [ "tests/test_graphql.py" ];
|
disabledTestPaths = [ "tests/test_graphql.py" ];
|
||||||
# https://github.com/encode/starlette/issues/1131
|
|
||||||
disabledTests = [ "test_debug_html" ];
|
|
||||||
pythonImportsCheck = [ "starlette" ];
|
pythonImportsCheck = [ "starlette" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue