python3Packages.slowapi: relax dependency constraints

This commit is contained in:
Fabian Affolter 2022-02-23 16:08:41 +01:00
parent eda4fe9d3b
commit 5bea6d3230

View File

@ -16,6 +16,7 @@ buildPythonPackage rec {
pname = "slowapi";
version = "0.1.5";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
@ -42,13 +43,21 @@ buildPythonPackage rec {
starlette
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'limits = "^1.5"' 'limits = "*"' \
--replace 'redis = "^3.4.1"' 'redis = "*"'
'';
disabledTests = [
# E AssertionError: Regex pattern 'parameter `request` must be an instance of starlette.requests.Request' does not match 'This portal is not running'.
"test_endpoint_request_param_invalid"
"test_endpoint_response_param_invalid"
];
pythonImportsCheck = [ "slowapi" ];
pythonImportsCheck = [
"slowapi"
];
meta = with lib; {
description = "Python library for API rate limiting";