lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python3Packages.pysnmp: Fix the build

The build did most likely break due to 501314c9e8b.

+29
+2
pkgs/development/python-modules/pysnmp/default.nix
··· 15 15 sha256 = "1acbfvpbr45i137s00mbhh21p71ywjfw3r8z0ybcmjjqz7rbwg8c"; 16 16 }; 17 17 18 + patches = [ ./setup.py-Fix-the-setuptools-version-check.patch ]; 19 + 18 20 # NameError: name 'mibBuilder' is not defined 19 21 doCheck = false; 20 22
+27
pkgs/development/python-modules/pysnmp/setup.py-Fix-the-setuptools-version-check.patch
··· 1 + From 5f843f7c8554e2feab7f57d8718231408196fd80 Mon Sep 17 00:00:00 2001 2 + From: Michael Weiss <dev.primeos@gmail.com> 3 + Date: Fri, 1 Nov 2019 18:47:14 +0100 4 + Subject: [PATCH] setup.py: Fix the setuptools version check 5 + 6 + This broke the Nix build after setuptools.__version__ changed from 7 + "41.2.0" to "41.4.0.post20191022". 8 + --- 9 + setup.py | 2 +- 10 + 1 file changed, 1 insertion(+), 1 deletion(-) 11 + 12 + diff --git a/setup.py b/setup.py 13 + index 0d987d5c..4f625d7c 100644 14 + --- a/setup.py 15 + +++ b/setup.py 16 + @@ -63,7 +63,7 @@ try: 17 + 18 + setup, Command = setuptools.setup, setuptools.Command 19 + 20 + - observed_version = [int(x) for x in setuptools.__version__.split('.')] 21 + + observed_version = [int(x) for x in setuptools.__version__.split('.')[0:3]] 22 + required_version = [36, 2, 0] 23 + 24 + # NOTE(etingof): require fresh setuptools to build proper wheels 25 + -- 26 + 2.23.0 27 +