diff --git a/safety/util.py b/safety/util.py
index 16062f4..b70c49c 100644
--- a/safety/util.py
+++ b/safety/util.py
@@ -21,6 +21,8 @@ def parse_line(line):
     if line.startswith('-e') or line.startswith('http://') or line.startswith('https://'):
         if "#egg=" in line:
             line = line.split("#egg=")[-1]
+    if ' --hash' in line:
+        line = line.split(" --hash")[0]
     return _parse_requirements(line)
 
 

Support requirements.txt with --hash
* safety version: 1.8.5
* Python version: 3.6.7
* Operating System: Ubuntu 18.04

### Description

`safety` skips package(s) with `--hash` inside `requirements.txt`
```
$ cat requirements.txt
flask==0.12.1 --hash=sha256:6c3130c8927109a08225993e4e503de4ac4f2678678ae211b33b519c622a7242
```
### What I Did

```
$ safety check -r requirements.txt
│ REPORT                                                                       │
│ checked 0 packages, using default DB                                         │
```

If I remove `--hash`, then `safety` will process and check the package(s) as expected
diff --git a/tests/test_safety.py b/tests/test_safety.py
index fdb63df..5e923eb 100644
--- a/tests/test_safety.py
+++ b/tests/test_safety.py
@@ -146,6 +146,24 @@ class TestSafety(unittest.TestCase):
         )
         self.assertEqual(len(vulns), 2)
 
+    def test_check_from_file_with_hash_pins(self):
+        reqs = StringIO(("Django==1.8.1 "
+                         "--hash=sha256:c6c7e7a961e2847d050d214ca96dc3167bb5f2b25cd5c6cb2eea96e1717f4ade"))
+        packages = util.read_requirements(reqs)
+
+        vulns = safety.check(
+            packages=packages,
+            db_mirror=os.path.join(
+                os.path.dirname(os.path.realpath(__file__)),
+                "test_db"
+            ),
+            cached=False,
+            key=False,
+            ignore_ids=[],
+            proxy={}
+        )
+        self.assertEqual(len(vulns), 2)
+
     def test_multiple_versions(self):
         reqs = StringIO("Django==1.8.1\n\rDjango==1.7.0")
         packages = util.read_requirements(reqs)

pip install -e .
parse_log_pytest
pytest
pytest pytest-cov
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
charset-normalizer==2.0.12
click==8.0.4
coverage==6.2
dparse==0.6.3
idna==3.10
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
pytest-cov==4.0.0
requests==2.27.1
-e git+https://github.com/pyupio/safety.git@955de595563482f103d5b7871598ce582baeafbd#egg=safety
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
tomli==1.2.3
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
urllib3==1.26.20
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: safety
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
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - charset-normalizer==2.0.12
      - click==8.0.4
      - coverage==6.2
      - dparse==0.6.3
      - idna==3.10
      - pytest-cov==4.0.0
      - requests==2.27.1
      - tomli==1.2.3
      - urllib3==1.26.20
prefix: /opt/conda/envs/safety

tests/test_safety.py::TestSafety::test_check_from_file_with_hash_pins
tests/test_safety.py::TestSafetyCLI::test_command_line_interface tests/test_safety.py::TestSafetyCLI::test_review_fail tests/test_safety.py::TestSafetyCLI::test_review_pass tests/test_safety.py::TestFormatter::test_full_report tests/test_safety.py::TestFormatter::test_get_terminal_size tests/test_safety.py::TestFormatter::test_get_used_db tests/test_safety.py::TestFormatter::test_report_json tests/test_safety.py::TestSafety::test_check_from_file tests/test_safety.py::TestSafety::test_check_live tests/test_safety.py::TestSafety::test_check_live_cached tests/test_safety.py::TestSafety::test_multiple_versions tests/test_safety.py::TestSafety::test_review_from_file tests/test_safety.py::ReadRequirementsTestCase::test_unpinned_vcs_requirement
safety/util.py
safety/util.py