1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 setuptools,
7 numpy,
8}:
9
10buildPythonPackage rec {
11 pname = "biopython";
12 version = "1.85";
13 pyproject = true;
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-Xa+rdAWd5OePSfa1aE7drm585G8Jz6BZwdEznoseoKY=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ numpy ];
25
26 pythonImportsCheck = [ "Bio" ];
27
28 checkPhase = ''
29 runHook preCheck
30
31 export HOME=$(mktemp -d)
32 cd Tests
33 python run_tests.py --offline
34
35 runHook postCheck
36 '';
37
38 meta = {
39 description = "Python library for bioinformatics";
40 longDescription = ''
41 Biopython is a set of freely available tools for biological computation
42 written in Python by an international team of developers. It is a
43 distributed collaborative effort to develop Python libraries and
44 applications which address the needs of current and future work in
45 bioinformatics.
46 '';
47 homepage = "https://biopython.org/wiki/Documentation";
48 maintainers = with lib.maintainers; [ luispedro ];
49 license = lib.licenses.bsd3;
50 };
51}