Skip to content

Commit 5066c58

Browse files
authored
telepresence: fix compilation error (#372616)
2 parents 58fa1fe + 2776956 commit 5066c58

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

pkgs/tools/networking/telepresence/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ pythonPackages.buildPythonPackage rec {
2929
sha256 = "1ccc8bzcdxp6rh6llk7grcnmyc05fq7dz5w0mifdzjv3a473hsky";
3030
};
3131

32+
patches = [
33+
./fix-versioneer.patch
34+
];
35+
3236
nativeBuildInputs = [ makeWrapper ];
3337

3438
postInstall = ''
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/versioneer.py b/versioneer.py
2+
index 7e5bb402e..60d65ef76 100644
3+
--- a/versioneer.py
4+
+++ b/versioneer.py
5+
@@ -339,9 +339,9 @@ def get_config_from_root(root):
6+
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
7+
# the top of versioneer.py for instructions on writing your setup.cfg .
8+
setup_cfg = os.path.join(root, "setup.cfg")
9+
- parser = configparser.SafeConfigParser()
10+
+ parser = configparser.ConfigParser()
11+
with open(setup_cfg, "r") as f:
12+
- parser.readfp(f)
13+
+ parser.read_file(f)
14+
VCS = parser.get("versioneer", "VCS") # mandatory
15+
16+
def get(parser, name):

0 commit comments

Comments
 (0)