Fix RNS setup.py license_files tuple for setuptools 80.x

This commit is contained in:
2026-06-09 20:49:16 -04:00
parent 6961027218
commit fb7c3e6424

View File

@@ -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;