Additionally, I installed cargo and rust, because they were mentioned as requirements for ruff. I got multiple errors and warnings when trying to install ruff the first time, so I tried these:
~ $ pip3 install -U cargo
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting cargo
Downloading https://www.piwheels.org/simple/cargo/cargo-0.3-py3-none-any.whl (7.2 kB)
Installing collected packages: cargo
Successfully installed cargo-0.3
~ $ pip3 install -U rust
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting rust
Downloading https://www.piwheels.org/simple/rust/RUST-1.3.1-py3-none-any.whl (49 kB)
|████████████████████████████████| 49 kB 187 kB/s
Collecting pysam
Downloading https://www.piwheels.org/simple/pysam/pysam-0.22.0-cp39-cp39-linux_armv6l.whl (17.5 MB)
|████████████████████████████████| 17.5 MB 15 kB/s
Requirement already satisfied: matplotlib in ./.local/lib/python3.9/site-packages (from rust) (3.8.2)
Requirement already satisfied: numpy in ./.local/lib/python3.9/site-packages (from rust) (1.26.2)
Requirement already satisfied: cycler>=0.10 in ./.local/lib/python3.9/site-packages (from matplotlib->rust) (0.12.1)
Requirement already satisfied: importlib-resources>=3.2.0 in ./.local/lib/python3.9/site-packages (from matplotlib->rust) (6.1.1)
Requirement already satisfied: kiwisolver>=1.3.1 in ./.local/lib/python3.9/site-packages (from matplotlib->rust) (1.4.5)
Requirement already satisfied: contourpy>=1.0.1 in ./.local/lib/python3.9/site-packages (from matplotlib->rust) (1.2.0)
Requirement already satisfied: pillow>=8 in ./.local/lib/python3.9/site-packages (from matplotlib->rust) (10.1.0)
Requirement already satisfied: fonttools>=4.22.0 in ./.local/lib/python3.9/site-packages (from matplotlib->rust) (4.45.1)
Requirement already satisfied: python-dateutil>=2.7 in ./.local/lib/python3.9/site-packages (from matplotlib->rust) (2.8.2)
Requirement already satisfied: pyparsing>=2.3.1 in ./.local/lib/python3.9/site-packages (from matplotlib->rust) (3.1.1)
Requirement already satisfied: packaging>=20.0 in ./.local/lib/python3.9/site-packages (from matplotlib->rust) (23.2)
Requirement already satisfied: zipp>=3.1.0 in ./.local/lib/python3.9/site-packages (from importlib-resources>=3.2.0->matplotlib->rust) (3.17.0)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.7->matplotlib->rust) (1.16.0)
Installing collected packages: pysam, rust
Successfully installed pysam-0.22.0 rust-1.3.1