Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.starlette: 0.13.8 -> 0.14.2 #112701

Merged
merged 1 commit into from Mar 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 10 additions & 6 deletions pkgs/development/python-modules/starlette/default.nix
Expand Up @@ -10,7 +10,6 @@
, python-multipart
, pyyaml
, requests
, ujson
, aiosqlite
, databases
, pytestCheckHook
Expand All @@ -21,16 +20,21 @@

buildPythonPackage rec {
pname = "starlette";
version = "0.13.8";
version = "0.14.2";
disabled = isPy27;

src = fetchFromGitHub {
owner = "encode";
repo = pname;
rev = version;
sha256 = "11i0yd8cqwscixajl734g11vf8pghki11c81chzfh8ifmj6mf9jk";
sha256 = "0fz28czvwiww693ig9vwdja59xxs7m0yp1df32ms1hzr99666bia";
};

postPatch = ''
# remove coverage arguments to pytest
sed -i '/--cov/d' setup.cfg
'';

propagatedBuildInputs = [
aiofiles
graphene
Expand All @@ -39,7 +43,6 @@ buildPythonPackage rec {
python-multipart
pyyaml
requests
ujson
] ++ lib.optional stdenv.isDarwin [ ApplicationServices ];

checkInputs = [
Expand All @@ -50,9 +53,10 @@ buildPythonPackage rec {
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" ];
# https://github.com/encode/starlette/issues/1131
disabledTests = [ "test_debug_html" ];

pythonImportsCheck = [ "starlette" ];

meta = with lib; {
Expand Down