diff --git a/requirements.txt b/requirements.txt
index 060d85f..fba487f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
-jsonpatch
+jsonpatch<=1.24 ; python_version == '3.4'
+jsonpatch ; python_version >= '3.5' or python_version == '2.7'
 jsonpath_rw
 jsonpointer
-urlparse2
\ No newline at end of file
diff --git a/setup.py b/setup.py
index 344e597..c5ea3b7 100644
--- a/setup.py
+++ b/setup.py
@@ -24,8 +24,14 @@ setup(name='redfish',
       packages=find_packages('src'),
       package_dir={'': 'src'},
       install_requires=[
-          'jsonpatch',
           'jsonpath_rw',
           'jsonpointer',
-          'urlparse2',
-      ])
+      ],
+      extras_require={
+          ':python_version == "3.4"': [
+              'jsonpatch<=1.24'
+          ],
+          ':python_version >= "3.5" or python_version == "2.7"': [
+              'jsonpatch'
+          ]
+      })
diff --git a/src/redfish/ris/rmc_helper.py b/src/redfish/ris/rmc_helper.py
index e633a49..da402ab 100644
--- a/src/redfish/ris/rmc_helper.py
+++ b/src/redfish/ris/rmc_helper.py
@@ -1,5 +1,5 @@
 # Copyright Notice:
-# Copyright 2016-2019 DMTF. All rights reserved.
+# Copyright 2016-2020 DMTF. All rights reserved.
 # License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/python-redfish-library/blob/master/LICENSE.md
 
 # -*- coding: utf-8 -*-
@@ -12,9 +12,10 @@ import json
 import errno
 import logging
 import hashlib
-import urlparse2
 import redfish.rest
 
+from six.moves.urllib.parse import urlparse
+
 from .ris import (RisMonolith)
 from .sharedtypes import (JSONEncoder)
 from .config import (AutoConfigParser)
@@ -146,7 +147,7 @@ class RmcClient(object):
 
     def get_cache_dirname(self):
         """The rest client's current base URL converted to path"""
-        parts = urlparse2.urlparse(self.get_base_url())
+        parts = urlparse(self.get_base_url())
         pathstr = '%s/%s' % (parts.netloc, parts.path)
         return pathstr.replace('//', '/')
 
diff --git a/tox.ini b/tox.ini
index 986f141..b1b8a84 100644
--- a/tox.ini
+++ b/tox.ini
@@ -14,6 +14,14 @@ commands =
     --with-timer \
     --with-coverage --cover-erase --cover-package=src
 
+[testenv:py27]
+deps =
+    coverage
+    fixtures
+    mock
+    nose
+    nose-timer
+
 [testenv:pep8]
 basepython = python3.6
 deps = flake8

Remove old library dependency - urlparse2
urlparse2 is an unmaintained library - last commit is 6 years old.
The library is not python3 compatible (at least it's dependecy - recordtype library).

HP's fork of python-redfish-library dropped urlparse2 last year...
https://github.com/HewlettPackard/python-ilorest-library/issues/28

Please, remove this dependency and use built-in functions to parse URL.
Thanks.
diff --git a/tests/ris/test_rmc_helper.py b/tests/ris/test_rmc_helper.py
new file mode 100644
index 0000000..dbf4a29
--- /dev/null
+++ b/tests/ris/test_rmc_helper.py
@@ -0,0 +1,29 @@
+# Copyright Notice:
+# Copyright 2020 DMTF. All rights reserved.
+# License: BSD 3-Clause License. For full text see link:
+#     https://github.com/DMTF/Redfish-Protocol-Validator/blob/master/LICENSE.md
+
+import unittest
+try:
+    from unittest import mock
+except ImportError:
+    import mock
+
+from redfish.ris import rmc_helper
+
+
+class RmcHelper(unittest.TestCase):
+    def setUp(self):
+        super(RmcHelper, self).setUp()
+
+    @mock.patch('redfish.rest.v1.HttpClient')
+    def test_get_cache_dirname(self, mock_http_client):
+        url = 'http://example.com'
+        helper = rmc_helper.RmcClient(url=url, username='oper', password='xyz')
+        mock_http_client.return_value.get_base_url.return_value = url
+        dir_name = helper.get_cache_dirname()
+        self.assertEqual(dir_name, 'example.com/')
+
+
+if __name__ == '__main__':
+    unittest.main()

pip install -e .[devel]
parse_log_pytest
requirements.txt
coverage fixtures nose nose-timer pytest
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi @ file:///croot/certifi_1671487769961/work/certifi
coverage==7.2.7
decorator==5.1.1
exceptiongroup==1.2.2
fixtures==4.1.0
importlib-metadata==6.7.0
iniconfig==2.0.0
jsonpatch==1.33
jsonpath-rw==1.4.0
jsonpointer==3.0.0
nose==1.3.7
nose-timer==1.0.1
packaging==24.0
pbr==6.1.1
pluggy==1.2.0
ply==3.11
pytest==7.4.4
recordtype==1.4
-e git+https://github.com/DMTF/python-redfish-library.git@58e4a2dfa58cbe51f4a8bef1fa20371d5197c8ed#egg=redfish
six==1.17.0
tomli==2.0.1
typing_extensions==4.7.1
urlparse2==1.1.1
zipp==3.15.0

name: python-redfish-library
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - coverage==7.2.7
      - decorator==5.1.1
      - exceptiongroup==1.2.2
      - fixtures==4.1.0
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - jsonpatch==1.33
      - jsonpath-rw==1.4.0
      - jsonpointer==3.0.0
      - nose==1.3.7
      - nose-timer==1.0.1
      - packaging==24.0
      - pbr==6.1.1
      - pluggy==1.2.0
      - ply==3.11
      - pytest==7.4.4
      - recordtype==1.4
      - six==1.17.0
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - urlparse2==1.1.1
      - zipp==3.15.0
prefix: /opt/conda/envs/python-redfish-library

tests/ris/test_rmc_helper.py::RmcHelper::test_get_cache_dirname
setup.py src/redfish/ris/rmc_helper.py requirements.txt tox.ini
setup.py src/redfish/ris/rmc_helper.py requirements.txt tox.ini