python.pkgs.biopython: move expression

This commit is contained in:
Frederik Rietdijk 2017-12-31 12:13:18 +01:00
parent 1ae541eee4
commit 8b905d1cb0
2 changed files with 33 additions and 27 deletions

View File

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, numpy
}:
buildPythonPackage rec {
pname = "biopython";
version = "1.68";
src = fetchPypi {
inherit pname version;
sha256 = "07qc7nz0k77y8hf8s18rscvibvm91zw0kkq7ylrhisf8vp8hkp6i";
};
propagatedBuildInputs = [ numpy ];
# Checks try to write to $HOME, which does not work with nix
doCheck = false;
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 = http://biopython.org/wiki/Documentation;
maintainers = with lib.maintainers; [ luispedro ];
license = lib.licenses.bsd3;
};
}

View File

@ -1239,33 +1239,7 @@ in {
};
};
biopython = buildPythonPackage rec {
name = "biopython-${version}";
version = "1.68";
src = pkgs.fetchurl {
url = "mirror://pypi/b/biopython/${name}.tar.gz";
sha256 = "07qc7nz0k77y8hf8s18rscvibvm91zw0kkq7ylrhisf8vp8hkp6i";
};
propagatedBuildInputs = with self; [ numpy ];
# Checks try to write to $HOME, which does not work with nix
doCheck = false;
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 = http://biopython.org/wiki/Documentation;
maintainers = with maintainers; [ luispedro ];
};
};
biopython = callPackage ../development/python-modules/biopython { };
bedup = buildPythonPackage rec {
version = "0.10.1";