Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 55 lines 1.2 kB view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, cython 5, lockfile 6, cachecontrol 7, decorator 8, ipython 9, matplotlib 10, natsort 11, numpy 12, pandas 13, scipy 14, hdmedians 15, scikitlearn 16, pytest 17, coverage 18, python 19, isPy3k 20}: 21 22buildPythonPackage rec { 23 version = "0.5.5"; 24 pname = "scikit-bio"; 25 disabled = !isPy3k; 26 27 src = fetchPypi { 28 inherit pname version; 29 sha256 = "9fa813be66e88a994f7b7a68b8ba2216e205c525caa8585386ebdeebed6428df"; 30 }; 31 32 buildInputs = [ cython ]; 33 checkInputs = [ coverage ]; 34 propagatedBuildInputs = [ lockfile cachecontrol decorator ipython matplotlib natsort numpy pandas scipy hdmedians scikitlearn ]; 35 36 # remove on when version > 0.5.4 37 postPatch = '' 38 sed -i "s/numpy >= 1.9.2, < 1.14.0/numpy/" setup.py 39 sed -i "s/pandas >= 0.19.2, < 0.23.0/pandas/" setup.py 40 ''; 41 42 # cython package not included for tests 43 doCheck = false; 44 45 checkPhase = '' 46 ${python.interpreter} -m skbio.test 47 ''; 48 49 meta = with stdenv.lib; { 50 homepage = http://scikit-bio.org/; 51 description = "Data structures, algorithms and educational resources for bioinformatics"; 52 license = licenses.bsd3; 53 maintainers = [ maintainers.costrouc ]; 54 }; 55}