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
75 lines
1.8 KiB
Nix
75 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
python3Packages,
|
|
zlib,
|
|
bash,
|
|
}:
|
|
|
|
let
|
|
pythonPackages = python3Packages;
|
|
inherit (pythonPackages) python;
|
|
in
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
pname = "quast";
|
|
version = "5.3.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ablab/quast/releases/download/${pname}_${version}/${pname}-${version}.tar.gz";
|
|
hash = "sha256-rJ26A++dClHXqeLFaCYQTnjzQPYmOjrTk2SEQt68dOw=";
|
|
};
|
|
|
|
pythonPath = with pythonPackages; [
|
|
simplejson
|
|
joblib
|
|
setuptools
|
|
distutils
|
|
matplotlib
|
|
];
|
|
|
|
buildInputs = [ zlib ] ++ pythonPath;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
substituteInPlace quast_libs/bedtools/Makefile \
|
|
--replace "/bin/bash" "${bash}/bin/bash"
|
|
mkdir -p "$out/${python.sitePackages}"
|
|
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
|
|
${python.pythonOnBuildForHost.interpreter} setup.py install \
|
|
--install-lib=$out/${python.sitePackages} \
|
|
--prefix="$out"
|
|
'';
|
|
|
|
postFixup = ''
|
|
for file in $(find $out -type f -type f -perm /0111); do
|
|
old_rpath=$(patchelf --print-rpath $file) && \
|
|
patchelf --set-rpath $old_rpath:${lib.getLib stdenv.cc.cc}/lib $file || true
|
|
done
|
|
# Link to the master program
|
|
ln -s $out/bin/quast.py $out/bin/quast
|
|
'';
|
|
|
|
dontPatchELF = true;
|
|
|
|
# Tests need to download data files, so manual run after packaging is needed
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Evaluates genome assemblies by computing various metrics";
|
|
homepage = "https://github.com/ablab/quast";
|
|
sourceProvenance = with lib.sourceTypes; [
|
|
fromSource
|
|
binaryNativeCode # source bundles binary dependencies
|
|
];
|
|
license = lib.licenses.gpl2;
|
|
maintainers = [ lib.maintainers.bzizou ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|