python3Packages.cryptoparser: remove python bytecode from package

Remove `__pycache__` directories:

```
./result/lib/python3.13/site-packages/cryptoparser/common/__pycache__
./result/lib/python3.13/site-packages/cryptoparser/dnsrec/__pycache__
./result/lib/python3.13/site-packages/cryptoparser/ssh/__pycache__
./result/lib/python3.13/site-packages/cryptoparser/tls/__pycache__
./result/lib/python3.13/site-packages/cryptoparser/httpx/__pycache__
./result/lib/python3.13/site-packages/cryptoparser/__pycache__
```
This commit is contained in:
Ivan Mincik
2025-09-18 09:14:58 +02:00
parent f1966361b6
commit 71e5534ac5
@@ -42,6 +42,14 @@ buildPythonPackage rec {
urllib3
];
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 = [ "cryptoparser" ];
meta = with lib; {