12 buildPythonPackage rec {
13 pname = "spyse-python";
15 format = "setuptools";
17 disabled = pythonOlder "3.8";
19 src = fetchFromGitHub {
23 sha256 = "041k0037anwaxp2mh7mdk8rdsw9hdr3arigyyqfxfn35x8j41c3k";
26 propagatedBuildInputs = [
33 # Tests requires an API token
37 # Update limiter import and rate limit, https://github.com/spyse-com/spyse-python/pull/11
39 name = "support-later-limiter.patch";
40 url = "https://github.com/spyse-com/spyse-python/commit/ff68164c514dfb28ab77d8690b3a5153962dbe8c.patch";
41 hash = "sha256-PoWPJCK/Scsh4P7lr97u4JpVHXNlY0C9rJgY4TDYmv0=";
46 substituteInPlace setup.py \
47 --replace "'dataclasses~=0.6'," "" \
48 --replace "responses~=0.13.3" "responses>=0.13.3" \
49 --replace "limiter~=0.1.2" "limiter>=0.1.2" \
50 --replace "requests~=2.26.0" "requests>=2.26.0"
53 pythonImportsCheck = [
58 description = "Python module for spyse.com API";
59 homepage = "https://github.com/spyse-com/spyse-python";
60 license = with licenses; [ mit ];
61 maintainers = with maintainers; [ fab ];