about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/scapy/fix-version.patch
blob: 7ecb16c3b7c700c2b9e2e82dd1a2eadadb97c3d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/setup.py	2018-02-15 22:14:08.531591678 +0100
+++ b/setup.py	2018-03-27 17:15:38.617315539 +0200
@@ -47,7 +47,7 @@
 
 setup(
     name='scapy',
-    version=__import__('scapy').VERSION,
+    version='NIXPKGS_SCAPY_VERSION',
     packages=[
         'scapy',
         'scapy/arch',
--- a/scapy/__init__.py	2018-03-27 17:38:52.706481269 +0200
+++ b/scapy/__init__.py	2018-03-27 17:39:56.576688890 +0200
@@ -82,9 +82,10 @@
             if match:
                 return "git-archive.dev" + match.group(1)
             elif sha1:
-                return "git-archive.dev" + sha1
+                return 'NIXPKGS_SCAPY_VERSION'
             else:
-                return 'unknown.version'
+                return 'NIXPKGS_SCAPY_VERSION'
+
 
 VERSION = _version()