Files
nixpkgs/pkgs/by-name/te/tebreak/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

67 lines
1.8 KiB
Nix

{
lib,
fetchFromGitHub,
last,
exonerate,
minia,
python3,
bwa,
samtools,
}:
python3.pkgs.buildPythonApplication rec {
pname = "tebreak";
version = "1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "adamewing";
repo = "tebreak";
rev = version;
sha256 = "13mgh775d8hkl340923lfwwm4r5ps70girn8d6wgfxzwzxylz8iz";
};
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
pysam
scipy
bx-python
scikit-bio
];
preConfigure = ''
# patch the paths to all required software
for f in $(find . -type f) ; do
sed -i "s|'bwa'|'${bwa}/bin/bwa'|" $f
sed -i "s|'minia'|'${minia}/bin/minia'|" $f
sed -i "s|'exonerate'|'${exonerate}/bin/exonerate'|" $f
sed -i "s|'samtools'|'${samtools}/bin/samtools'|" $f
sed -i "s|'lastal'|'${last}/bin/lastal'|" $f
sed -i "s|'lastdb'|'${last}/bin/lastdb'|" $f
done
'';
checkPhase = ''
$out/bin/tebreak -b test/data/example.ins.bam -r test/data/Homo_sapiens_chr4_50000000-60000000_assembly19.fasta -p 4 --pickle test/example.pickle --detail_out test/example.tebreak.detail.out -i lib/teref.human.fa
pushd test
${python3.interpreter} checktest.py
'';
pythonImportsCheck = [ "tebreak" ];
meta = {
description = "Find and characterise transposable element insertions";
mainProgram = "tebreak";
homepage = "https://github.com/adamewing/tebreak";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jbedo ];
platforms = lib.platforms.x86_64;
# Several tests are failing:
# - AttributeError: module 'skbio.alignment' has no attribute 'local_pairwise_align_ssw'.
# Did you mean: 'local_pairwise_align'?
# - AssertionError: 6 != 0
broken = true;
};
}