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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user