nixpkgs/pkgs/development/python-modules/scapy/fix-version.patch

14 lines
381 B
Diff
Raw Normal View History

2019-08-07 12:48:26 +01:00
diff --git a/scapy/__init__.py b/scapy/__init__.py
index d5ad6164..245ce2fb 100644
--- a/scapy/__init__.py
+++ b/scapy/__init__.py
@@ -90,7 +90,7 @@ def _version():
return 'unknown.version'
2019-01-10 13:47:02 +00:00
2018-02-15 21:40:01 +00:00
2019-08-07 12:48:26 +01:00
-VERSION = __version__ = _version()
+VERSION = __version__ = "NIXPKGS_SCAPY_VERSION"
VERSION_MAIN = re.search(r"[0-9.]+", VERSION).group()
2018-02-15 21:40:01 +00:00
2019-08-07 12:48:26 +01:00
if __name__ == "__main__":