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