2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
numpy,
|
|
|
|
cython,
|
|
|
|
zlib,
|
|
|
|
python-lzo,
|
|
|
|
nose,
|
2023-08-22 20:05:09 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bx-python";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.11.0";
|
2023-08-22 20:05:09 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
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}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-evhxh/cCZFSK6EgMu7fC9/ZrPd2S1fZz89ItGYrHQck=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ zlib ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
python-lzo
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|