depot/third_party/nixpkgs/pkgs/development/python-modules/scikit-bio/default.nix
Default email e7f069c37c Project import generated by Copybara.
GitOrigin-RevId: 467ce5a9f45aaf96110b41eb863a56866e1c2c3c
2020-06-02 20:00:15 +02:00

54 lines
1.1 KiB
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, cython
, lockfile
, cachecontrol
, decorator
, ipython
, matplotlib
, natsort
, numpy
, pandas
, scipy
, hdmedians
, scikitlearn
, coverage
, python
, isPy3k
}:
buildPythonPackage rec {
version = "0.5.6";
pname = "scikit-bio";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "48b73ec53ce0ff2c2e3e05f3cfcf93527c1525a8d3e9dd4ae317b4219c37f0ea";
};
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; {
homepage = "http://scikit-bio.org/";
description = "Data structures, algorithms and educational resources for bioinformatics";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}