Try installing from zip url
MODIFY
Pipfile
Pipfile
@@ -20,9 +20,9 @@ requests = ">=2.25.1"
requests-cache = "==0.9.6"
rich = "==12.6.0"
tqdm = "==4.64.1"
-trakt = {ref = "3.4.0", git = "https://github.com/glensc/python-trakt"}
urllib3 = ">=1.26.6"
websocket-client = "==1.4.1"
+trakt = {file = "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.0.zip"}
[requires]
python_version = "3"

MODIFY
Pipfile.lock
Pipfile.lock
{
"_meta": {
"hash": {
- "sha256": "fcb075b2517afb0196bd8dae72905c7f8aec06d05d2321cb472a19064f49bfb8"
+ "sha256": "d879198c5226ee72ac817e91d805550e857f484485b1085d345408765377c318"
},
"pipfile-spec": 6,
"requires": {
"version": "==4.64.1"
},
"trakt": {
- "git": "https://github.com/glensc/python-trakt",
- "hashes": [
- "sha256:1efd909378a09dd0abc3f056e12b2c18cad20cc699bfd211d1807414ba77d90d",
- "sha256:a5f54258102c747ff50f3ffecc8ed52f20706938f620da4dd016d47ee4fd75ae"
- ],
- "ref": "8a6d4f168a858447014fb4c2c0efceb47b30ebb7"
+ "file": "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.0.zip",
+ "version": "==3.4.0"
},
"url-normalize": {
"hashes": [

MODIFY
requirements.txt
requirements.txt
@@ -15,7 +15,7 @@ click==8.1.3
commonmark==0.9.1
deprecated==1.2.13
exceptiongroup==1.0.0rc9; python_version < '3.11'
-git+https://github.com/glensc/python-trakt@3.4.0#egg=trakt
+https://github.com/glensc/python-trakt/archive/refs/tags/3.4.0.zip#egg=trakt
idna==3.4; python_version >= '3.5'
inquirerpy==0.3.4
oauthlib==3.2.2; python_version >= '3.6'

Try installing from zip url