python310Packages.spyse-python: allow later limiter releases
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
, buildPythonPackage
|
||||
, dataclasses-json
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, limiter
|
||||
, pythonOlder
|
||||
, requests
|
||||
@@ -32,11 +33,21 @@ buildPythonPackage rec {
|
||||
# Tests requires an API token
|
||||
doCheck = false;
|
||||
|
||||
patches = [
|
||||
# Update limiter import and rate limit, https://github.com/spyse-com/spyse-python/pull/11
|
||||
(fetchpatch {
|
||||
name = "support-later-limiter.patch";
|
||||
url = "https://github.com/spyse-com/spyse-python/commit/ff68164c514dfb28ab77d8690b3a5153962dbe8c.patch";
|
||||
sha256 = "sha256-PoWPJCK/Scsh4P7lr97u4JpVHXNlY0C9rJgY4TDYmv0=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'dataclasses~=0.6'," "" \
|
||||
--replace "responses~=0.13.3" "responses>=0.13.3" \
|
||||
--replace "limiter~=0.1.2" "limiter>=0.1.2"
|
||||
--replace "limiter~=0.1.2" "limiter>=0.1.2" \
|
||||
--replace "requests~=2.26.0" "requests>=2.26.0"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
||||
Reference in New Issue
Block a user