2021-09-13 10:06:19 +00:00
|
|
|
{ stdenv, lib, fetchurl, python3Packages, cmake, python3 }:
|
2020-04-24 09:20:14 +00:00
|
|
|
|
2021-09-13 10:06:19 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 09:20:14 +00:00
|
|
|
pname = "obitools3";
|
2021-09-07 07:38:41 +00:00
|
|
|
version = "3.0.1b11";
|
2020-04-24 09:20:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://git.metabarcoding.org/obitools/${pname}/repository/v${version}/archive.tar.gz";
|
2021-09-07 07:38:41 +00:00
|
|
|
sha256 = "1x7a0nrr9agg1pfgq8i1j8r1p6c0jpyxsv196ylix1dd2iivmas1";
|
2020-04-24 09:20:14 +00:00
|
|
|
};
|
|
|
|
|
2021-09-13 10:06:19 +00:00
|
|
|
nativeBuildInputs = [ python3Packages.cython cmake ];
|
|
|
|
|
|
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isAarch64 ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "'-msse2'," ""
|
|
|
|
'';
|
|
|
|
|
2020-04-24 09:20:14 +00:00
|
|
|
preBuild = ''
|
2023-03-24 00:30:46 +00:00
|
|
|
substituteInPlace src/CMakeLists.txt --replace \$'{PYTHONLIB}' "$out/${python3.sitePackages}";
|
|
|
|
export NIX_CFLAGS_COMPILE="-L $out/${python3.sitePackages} $NIX_CFLAGS_COMPILE"
|
2020-04-24 09:20:14 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
meta = with lib ; {
|
2020-04-24 09:20:14 +00:00
|
|
|
description = "Management of analyses and data in DNA metabarcoding";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "obi";
|
2020-04-24 09:20:14 +00:00
|
|
|
homepage = "https://git.metabarcoding.org/obitools/obitools3";
|
|
|
|
license = licenses.cecill20;
|
|
|
|
maintainers = [ maintainers.bzizou ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|