python3Packages.cryptolyzer: remove python bytecode from package

Remove `__pycache__` directories:

```
./result/lib/python3.13/site-packages/tools/__pycache__
./result/lib/python3.13/site-packages/cryptolyzer/common/__pycache__
./result/lib/python3.13/site-packages/cryptolyzer/dnsrec/__pycache__
./result/lib/python3.13/site-packages/cryptolyzer/hassh/__pycache__
./result/lib/python3.13/site-packages/cryptolyzer/ssh/__pycache__
./result/lib/python3.13/site-packages/cryptolyzer/tls/__pycache__
./result/lib/python3.13/site-packages/cryptolyzer/ja3/__pycache__
./result/lib/python3.13/site-packages/cryptolyzer/httpx/__pycache__
./result/lib/python3.13/site-packages/cryptolyzer/__pycache__
```
This commit is contained in:
Ivan Mincik
2025-09-18 09:09:24 +02:00
parent 8baabeae4a
commit ed45aa092a
@@ -59,6 +59,14 @@ buildPythonPackage rec {
# Tests require networking
doCheck = false;
postInstall = ''
find $out -name "__pycache__" -type d | xargs rm -rv
# Prevent creating more binary byte code later (e.g. during
# pythonImportsCheck)
export PYTHONDONTWRITEBYTECODE=1
'';
pythonImportsCheck = [ "cryptolyzer" ];
meta = {