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