1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
numpy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "biopython";
|
|
version = "1.85";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Xa+rdAWd5OePSfa1aE7drm585G8Jz6BZwdEznoseoKY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ numpy ];
|
|
|
|
pythonImportsCheck = [ "Bio" ];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
export HOME=$(mktemp -d)
|
|
cd Tests
|
|
python run_tests.py --offline
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|