Description: pkg-resources only works once the package has been installed and breaks
 in-place testing. Workaround it by making it n/a if not found
Author: Nilesh Patra <nilesh@debian.org>
Forwarded: not-needed
Last-Update: 2022-02-17
--- a/pyfaidx/__init__.py
+++ b/pyfaidx/__init__.py
@@ -7,6 +7,7 @@ from __future__ import division
 
 import datetime
 import os
+import pkg_resources
 import re
 import string
 import sys
@@ -33,7 +34,10 @@ try:
 except ImportError:
     fsspec = None
 
-__version__ = get_distribution("pyfaidx").version
+try:
+    __version__ = get_distribution("pyfaidx").version
+except (ImportError, pkg_resources.DistributionNotFound):
+    __version__ = 'n/a'
 
 if sys.version_info > (3, ):
     buffer = memoryview
