at master 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 setuptools, 7 cython, 8 oldest-supported-numpy, 9 10 requests, 11 decorator, 12 natsort, 13 numpy, 14 pandas, 15 scipy, 16 h5py, 17 biom-format, 18 statsmodels, 19 patsy, 20 array-api-compat, 21 22 python, 23 pytestCheckHook, 24}: 25 26buildPythonPackage rec { 27 pname = "scikit-bio"; 28 version = "0.7.0"; 29 pyproject = true; 30 31 src = fetchFromGitHub { 32 owner = "scikit-bio"; 33 repo = "scikit-bio"; 34 tag = version; 35 hash = "sha256-M0P5DUAMlRTkaIPbxSvO99N3y5eTrkg4NMlkIpGr4/g="; 36 }; 37 38 build-system = [ 39 setuptools 40 cython 41 oldest-supported-numpy 42 ]; 43 44 dependencies = [ 45 requests 46 decorator 47 natsort 48 numpy 49 pandas 50 scipy 51 h5py 52 biom-format 53 statsmodels 54 patsy 55 array-api-compat 56 ]; 57 58 nativeCheckInputs = [ pytestCheckHook ]; 59 60 # only the $out dir contains the built cython extensions, so we run the tests inside there 61 enabledTestPaths = [ "${placeholder "out"}/${python.sitePackages}/skbio" ]; 62 63 pythonImportsCheck = [ "skbio" ]; 64 65 meta = { 66 homepage = "http://scikit-bio.org/"; 67 description = "Data structures, algorithms and educational resources for bioinformatics"; 68 license = lib.licenses.bsd3; 69 maintainers = with lib.maintainers; [ tomasajt ]; 70 }; 71}