2018-10-11 02:21:58 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cython
|
|
|
|
, lockfile
|
|
|
|
, cachecontrol
|
|
|
|
, decorator
|
|
|
|
, ipython
|
|
|
|
, matplotlib
|
|
|
|
, natsort
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, scipy
|
|
|
|
, hdmedians
|
|
|
|
, scikitlearn
|
|
|
|
, coverage
|
|
|
|
, python
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-05-09 11:01:59 +01:00
|
|
|
version = "0.5.6";
|
2018-10-11 02:21:58 +01:00
|
|
|
pname = "scikit-bio";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:01:59 +01:00
|
|
|
sha256 = "48b73ec53ce0ff2c2e3e05f3cfcf93527c1525a8d3e9dd4ae317b4219c37f0ea";
|
2018-10-11 02:21:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cython ];
|
|
|
|
checkInputs = [ coverage ];
|
|
|
|
propagatedBuildInputs = [ lockfile cachecontrol decorator ipython matplotlib natsort numpy pandas scipy hdmedians scikitlearn ];
|
|
|
|
|
|
|
|
# remove on when version > 0.5.4
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "s/numpy >= 1.9.2, < 1.14.0/numpy/" setup.py
|
|
|
|
sed -i "s/pandas >= 0.19.2, < 0.23.0/pandas/" setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# cython package not included for tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m skbio.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://scikit-bio.org/";
|
2018-10-11 02:21:58 +01:00
|
|
|
description = "Data structures, algorithms and educational resources for bioinformatics";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|