2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
numpy,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "biopython";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.83";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-eOa/t43mMDQDev01/nfLbgqeW2Jwa+z3in2SKxbtg/c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
patches = [
|
|
|
|
# cherry-picked from https://github.com/biopython/biopython/commit/3f9bda7ef44f533dadbaa0de29ac21929bc0b2f1
|
|
|
|
# fixes SeqXMLIO parser to process all data. remove on next update
|
|
|
|
./close_parser_on_time.patch
|
2024-01-25 14:12:00 +00:00
|
|
|
];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [ numpy ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "Bio" ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
cd Tests
|
|
|
|
python run_tests.py --offline
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Python library for bioinformatics";
|
|
|
|
longDescription = ''
|
|
|
|
Biopython is a set of freely available tools for biological computation
|
|
|
|
written in Python by an international team of developers. It is a
|
|
|
|
distributed collaborative effort to develop Python libraries and
|
|
|
|
applications which address the needs of current and future work in
|
|
|
|
bioinformatics.
|
|
|
|
'';
|
|
|
|
homepage = "https://biopython.org/wiki/Documentation";
|
|
|
|
maintainers = with lib.maintainers; [ luispedro ];
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|