Merge pull request #161516 from fabaff/bump-shodan

python3Packages.shodan: 1.26.1 -> 1.27.0
This commit is contained in:
Fabian Affolter 2022-02-23 20:25:06 +01:00 committed by GitHub
commit 1bba084a3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

View file

@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "shodan";
version = "1.26.1";
version = "1.27.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-8oJ7QNaRiYjvn18W3LihM4OqrhooRYmPcBLqyJBru4c=";
sha256 = "sha256-XkrnBuALYxZ6n/f34PM0QvxqxvC08mKci9Mswwf41VA=";
};
propagatedBuildInputs = [

View file

@ -7,6 +7,7 @@
, hiro
, poetry-core
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, redis
, starlette
@ -16,6 +17,7 @@ buildPythonPackage rec {
pname = "slowapi";
version = "0.1.5";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
@ -42,13 +44,23 @@ 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'.
# 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"
] ++ lib.optionals (pythonAtLeast "3.10") [
"test_multiple_decorators"
];
pythonImportsCheck = [ "slowapi" ];
pythonImportsCheck = [
"slowapi"
];
meta = with lib; {
description = "Python library for API rate limiting";