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; inherit version;
sha256 = "554814231c237b9caacf8df669312e57dd7d3f84b6d4810125087d1a79a75d75"; sha256 = "554814231c237b9caacf8df669312e57dd7d3f84b6d4810125087d1a79a75d75";
}; };
sourceRoot = "rns-${version}"; patchPhase = ''
postUnpack = '' # Fix license_files syntax: ("LICENSE") is a string not tuple
echo "=== RNS source structure ===" # Newer setuptools iterates over it char by char, fails on 'S'
find . -maxdepth 3 -type d | head -20 substituteInPlace setup.py \
--replace-fail 'license_files = ("LICENSE")' 'license_files = ("LICENSE",)'
''; '';
propagatedBuildInputs = with pyPkgs; [ cryptography pyserial ]; propagatedBuildInputs = with pyPkgs; [ cryptography pyserial ];
doCheck = false; doCheck = false;