Skip to content

Commit

Permalink
python311Packages.biopython: enable tests and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Jan 14, 2024
1 parent 7063e1f commit 5b9de10
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions pkgs/development/python-modules/biopython/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, numpy
, isPy3k
}:

buildPythonPackage rec {
pname = "biopython";
version = "1.83";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.9";

src = fetchPypi {
inherit pname version;
hash = "sha256-eOa/t43mMDQDev01/nfLbgqeW2Jwa+z3in2SKxbtg/c=";
};

disabled = !isPy3k;
nativeBuildInputs = [
setuptools
];

propagatedBuildInputs = [ numpy ];
# Checks try to write to $HOME, which does not work with nix
doCheck = false;

pythonImportsCheck = [
"Bio"
];

checkPhase = ''
runHook preCheck
cd Tests
python run_tests.py --offline
runHook postCheck
'';

meta = {
description = "Python library for bioinformatics";
longDescription = ''
Expand Down

0 comments on commit 5b9de10

Please sign in to comment.