nixpkgs/pkgs/development/python-modules/biopython/default.nix
2026-02-01 17:41:07 +01:00

50 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
numpy,
}:
buildPythonPackage rec {
pname = "biopython";
version = "1.86";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-k6ULWGpNLOxoqy+Z0D71g8V2HY+6VTXLjoHaeB0Nkv8=";
};
build-system = [ setuptools ];
dependencies = [ numpy ];
pythonImportsCheck = [ "Bio" ];
checkPhase = ''
runHook preCheck
export HOME=$(mktemp -d)
cd Tests
python run_tests.py --offline
runHook postCheck
'';
meta = {
# https://github.com/biopython/biopython/issues/5135
broken = lib.versionAtLeast numpy.version "2.4";
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;
};
}