python3Packages.starlette: drop bad tests like upstream

These tests started failing with sqlalchemy 1.4.42
This commit is contained in:
Vladimír Čunát
2022-10-29 12:14:05 +02:00
parent 142c743774
commit 44c2105bda

View File

@@ -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