Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 cloudpickle, 5 dask, 6 distributed, 7 fetchPypi, 8 multipledispatch, 9 pytestCheckHook, 10 pythonOlder, 11 scikit-learn, 12 scipy, 13 setuptools-scm, 14 sparse, 15}: 16 17buildPythonPackage rec { 18 pname = "dask-glm"; 19 version = "0.3.2"; 20 format = "setuptools"; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-yUelZoZmmKAdeZeK5zIzy16DitXq1ghRQ1gsXpMLmko="; 27 }; 28 29 nativeBuildInputs = [ setuptools-scm ]; 30 31 propagatedBuildInputs = [ 32 cloudpickle 33 distributed 34 multipledispatch 35 scikit-learn 36 scipy 37 sparse 38 ] ++ dask.optional-dependencies.array; 39 40 nativeCheckInputs = [ 41 sparse 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ "dask_glm" ]; 46 47 disabledTestPaths = [ 48 # Circular dependency with dask-ml 49 "dask_glm/tests/test_estimators.py" 50 # Test tries to imort an obsolete method 51 "dask_glm/tests/test_utils.py" 52 ]; 53 54 disabledTests = [ 55 # missing fixture with distributed>=2022.8.0 56 "test_determinism_distributed" 57 ]; 58 59 __darwinAllowLocalNetworking = true; 60 61 meta = with lib; { 62 description = "Generalized Linear Models with Dask"; 63 homepage = "https://github.com/dask/dask-glm/"; 64 license = licenses.bsd3; 65 maintainers = [ ]; 66 }; 67}