Fix RNS setup.py license_files tuple for setuptools 80.x
This commit is contained in:
@@ -12,10 +12,11 @@ in
|
||||
inherit version;
|
||||
sha256 = "554814231c237b9caacf8df669312e57dd7d3f84b6d4810125087d1a79a75d75";
|
||||
};
|
||||
sourceRoot = "rns-${version}";
|
||||
postUnpack = ''
|
||||
echo "=== RNS source structure ==="
|
||||
find . -maxdepth 3 -type d | head -20
|
||||
patchPhase = ''
|
||||
# Fix license_files syntax: ("LICENSE") is a string not tuple
|
||||
# Newer setuptools iterates over it char by char, fails on 'S'
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail 'license_files = ("LICENSE")' 'license_files = ("LICENSE",)'
|
||||
'';
|
||||
propagatedBuildInputs = with pyPkgs; [ cryptography pyserial ];
|
||||
doCheck = false;
|
||||
|
||||
Reference in New Issue
Block a user