2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, numpy
|
|
|
|
, cython
|
|
|
|
, zlib
|
|
|
|
, python-lzo
|
|
|
|
, nose
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bx-python";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.10.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
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-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-j2GKj2IGDBk4LBnISRx6ZW/lh5VSdQBasC0gCRj0Fiw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
python-lzo
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
nose
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp -r scripts/* $out/bin
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
# This is a small hack; the test suite uses the scripts which need to
|
2020-04-24 23:36:52 +00:00
|
|
|
# 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; {
|
2023-08-22 20:05:09 +00:00
|
|
|
description = "Tools for manipulating biological data, particularly multiple sequence alignments";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/bxlab/bx-python";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/bxlab/bx-python/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = with maintainers; [ jbedo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|