File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
pkgs/tools/networking/telepresence Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff 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 = ''
Original file line number Diff line number Diff line change 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):
You can’t perform that action at this time.
0 commit comments