From 44c2105bdae26fa7d2f1a8642fe3b8a25e2390fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 29 Oct 2022 12:14:05 +0200 Subject: [PATCH] python3Packages.starlette: drop bad tests like upstream These tests started failing with sqlalchemy 1.4.42 --- pkgs/development/python-modules/starlette/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/starlette/default.nix b/pkgs/development/python-modules/starlette/default.nix index 78a428a2a724..6d96df91c4f5 100644 --- a/pkgs/development/python-modules/starlette/default.nix +++ b/pkgs/development/python-modules/starlette/default.nix @@ -2,6 +2,7 @@ , stdenv , buildPythonPackage , fetchFromGitHub +, fetchpatch , aiofiles , anyio , contextlib2 @@ -33,6 +34,14 @@ buildPythonPackage rec { hash = "sha256-vP2TJPn9lRGnLGkO8lUmnsoT6rSnhuWDD3WqNk76SM0="; }; + patches = [ + (fetchpatch { + url = "https://github.com/encode/starlette/commit/ab70211f0e1fb7390668bf4891eeceda8d9723a0.diff"; + excludes = [ "requirements.txt" ]; # conflicts + hash = "sha256-UHf4c4YUWp/1I1vD8J0hMewdlfkmluA+FyGf9ZsSv3Y="; + }) + ]; + postPatch = '' # remove coverage arguments to pytest sed -i '/--cov/d' setup.cfg