2021-12-06 16:07:01 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, numpy, cython, zlib, six
|
2020-04-24 23:36:52 +00:00
|
|
|
, python-lzo, nose }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bx-python";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.9.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bxlab";
|
|
|
|
repo = "bx-python";
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-Pi4hV3FatCXoXY3nNgqm5UfWYIrpP/v5PzzCi3gmIbE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
propagatedBuildInputs = [ numpy six python-lzo ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ nose ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp -r scripts/* $out/bin
|
|
|
|
|
|
|
|
# This is a small hack; the test suit uses the scripts which need to
|
|
|
|
# be patched. Linking the patched scripts in $out back to the
|
|
|
|
# working directory allows the tests to run
|
|
|
|
rm -rf scripts
|
|
|
|
ln -s $out/bin scripts
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/bxlab/bx-python";
|
|
|
|
description =
|
|
|
|
"Tools for manipulating biological data, particularly multiple sequence alignments";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.jbedo ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|